Explorar o código

Merge pull request #4823 from ThomasWaldmann/ignore-hardlink-eacces-1.1

ignore EACCES (errno 13) when hardlinking, fixes #4730
TW %!s(int64=5) %!d(string=hai) anos
pai
achega
ac7148369c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/repository.py

+ 1 - 1
src/borg/repository.py

@@ -298,7 +298,7 @@ class Repository:
             try:
                 os.link(config_path, old_config_path)
             except OSError as e:
-                if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.ENOTSUP):
+                if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP):
                     logger.warning("Failed to securely erase old repository config file (hardlinks not supported>). "
                                    "Old repokey data, if any, might persist on physical storage.")
                 else: