Просмотр исходного кода

Linux: acl_set bug fix: always fsencode path

We use path when raising OSErrors, even if we have an fd.
Thomas Waldmann 1 год назад
Родитель
Сommit
6ad1ad67d5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/borg/platform/linux.pyx

+ 1 - 1
src/borg/platform/linux.pyx

@@ -287,7 +287,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