mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
Linux: acl_set bug fix: always fsencode path
We use path when raising OSErrors, even if we have an fd.
This commit is contained in:
parent
96cac5f381
commit
4cc4516c59
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ def acl_set(path, item, numeric_ids=False, fd=None):
|
|||
# Linux does not support setting ACLs on symlinks
|
||||
return
|
||||
|
||||
if fd is None and isinstance(path, str):
|
||||
if isinstance(path, str):
|
||||
path = os.fsencode(path)
|
||||
if numeric_ids:
|
||||
converter = posix_acl_use_stored_uid_gid
|
||||
|
|
Loading…
Reference in a new issue