mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
on linux, symlinks can't have ACLs, see #4044
This commit is contained in:
parent
57b105314b
commit
ca1928c925
1 changed files with 4 additions and 0 deletions
|
@ -200,6 +200,10 @@ def acl_set(path, item, numeric_owner=False):
|
|||
cdef acl_t access_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
|
||||
|
||||
p = <bytes>os.fsencode(path)
|
||||
if numeric_owner:
|
||||
converter = posix_acl_use_stored_uid_gid
|
||||
|
|
Loading…
Reference in a new issue