borgbackup/src/borg/platform
Björn Ketelaars c5e3f3b4d4 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
2019-02-26 17:06:58 +01:00
..
__init__.py Introduce borg.platformflags.is_<os> 2018-11-10 23:34:43 +01:00
base.py acl_get() and acl_set() should accept a fd. Related to #4403 2019-02-26 17:06:58 +01:00
darwin.pyx bump API_VERSIONs to 1.2_xx 2019-02-24 19:45:41 +01:00
freebsd.pyx bump API_VERSIONs to 1.2_xx 2019-02-24 19:45:41 +01:00
linux.pyx bump API_VERSIONs to 1.2_xx 2019-02-24 19:45:41 +01:00
posix.pyx remove accidental change 2018-11-10 23:39:28 +01:00
xattr.py remove unneded code and remarks, added needed except clause 2018-11-10 21:56:39 +01:00