mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
some micro-opts in stat_ext_attrs
This commit is contained in:
parent
1b65db990d
commit
d4971e2819
1 changed files with 2 additions and 6 deletions
|
@ -1079,13 +1079,9 @@ def stat_simple_attrs(self, st):
|
|||
|
||||
def stat_ext_attrs(self, st, path, fd=None):
|
||||
attrs = {}
|
||||
flags = 0
|
||||
xattrs = {}
|
||||
with backup_io('extended stat'):
|
||||
if not self.noflags:
|
||||
flags = get_flags(path, st, fd=fd)
|
||||
if not self.noxattrs:
|
||||
xattrs = xattr.get_all(fd or path, follow_symlinks=False)
|
||||
flags = 0 if self.noflags else get_flags(path, st, fd=fd)
|
||||
xattrs = {} if self.noxattrs else xattr.get_all(fd or path, follow_symlinks=False)
|
||||
if not self.noacls:
|
||||
acl_get(path, attrs, st, self.numeric_owner, fd=fd)
|
||||
if xattrs:
|
||||
|
|
Loading…
Reference in a new issue