mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-15 21:59:58 -04:00
some micro-opts in stat_ext_attrs
This commit is contained in:
parent
4545b9e54d
commit
17e416de62
1 changed files with 2 additions and 6 deletions
|
|
@ -912,13 +912,9 @@ Utilization of max. archive size: {csize_max:.0%}
|
|||
|
||||
def stat_ext_attrs(self, st, path):
|
||||
attrs = {}
|
||||
bsdflags = 0
|
||||
xattrs = {}
|
||||
with backup_io('extended stat'):
|
||||
if not self.noxattrs:
|
||||
xattrs = xattr.get_all(path, follow_symlinks=False)
|
||||
if not self.nobsdflags:
|
||||
bsdflags = get_flags(path, st)
|
||||
xattrs = {} if self.noxattrs else xattr.get_all(path, follow_symlinks=False)
|
||||
bsdflags = 0 if self.nobsdflags else get_flags(path, st)
|
||||
if not self.noacls:
|
||||
acl_get(path, attrs, st, self.numeric_owner)
|
||||
if xattrs:
|
||||
|
|
|
|||
Loading…
Reference in a new issue