mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 16:55:36 +00:00
on linux, symlinks can't have ACLs, see #4044
(cherry picked from commit ca1928c925
)
This commit is contained in:
parent
1c4a231a17
commit
ca6a7d1500
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ def acl_set(path, item, numeric_owner=False, fd=None):
|
||||||
cdef acl_t access_acl = NULL
|
cdef acl_t access_acl = NULL
|
||||||
cdef acl_t default_acl = NULL
|
cdef acl_t default_acl = NULL
|
||||||
|
|
||||||
|
if stat.S_ISLNK(item.get('mode', 0)):
|
||||||
|
# Linux does not support setting ACLs on symlinks
|
||||||
|
return
|
||||||
|
|
||||||
if fd is None and isinstance(path, str):
|
if fd is None and isinstance(path, str):
|
||||||
path = os.fsencode(path)
|
path = os.fsencode(path)
|
||||||
if numeric_owner:
|
if numeric_owner:
|
||||||
|
|
Loading…
Reference in a new issue