mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
Fix xattr on OS X
This commit is contained in:
parent
2281af5284
commit
f049b3d4c7
1 changed files with 0 additions and 3 deletions
|
@ -138,13 +138,10 @@ def getxattr(path, name, *, follow_symlinks=True):
|
|||
flags = 0
|
||||
if isinstance(path, str):
|
||||
path = os.fsencode(path)
|
||||
func = libc.fgetxattr
|
||||
if isinstance(path, int):
|
||||
func = libc.fgetxattr
|
||||
elif not follow_symlinks:
|
||||
flags = XATTR_NOFOLLOW
|
||||
else:
|
||||
func = libc.lgetxattr
|
||||
n = _check(func(path, name, None, 0, 0, flags))
|
||||
if n == 0:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue