acl_get() and acl_set() should accept a fd. Related to #4403
Fixes:
self = <borg.archive.MetadataCollector object at 0x14ffb70b28d0>
st = os.stat_result(st_mode=16895, st_ino=246007, st_dev=65280, st_nlink=3, st_uid=100
0, st_gid=0, st_size=512, st_atime=1551123978, st_mtime=1551123979, st_ctime=155112397
9)
path = 'input', fd = 16
def stat_ext_attrs(self, st, path, fd=None):
attrs = {}
bsdflags = 0
with backup_io('extended stat'):
if not self.nobsdflags:
bsdflags = get_flags(path, st, fd=fd)
xattrs = xattr.get_all(fd or path, follow_symlinks=False)
> acl_get(path, attrs, st, self.numeric_owner, fd=fd)
E TypeError: acl_get() got an unexpected keyword argument 'fd'
src/borg/archive.py:1023: TypeError