2
0
Эх сурвалжийг харах

catch ENOTSUP for os.link, fixes #3107

(cherry picked from commit 203a5c8f197904b51fbced32f42cf0c383130292)
Thomas Waldmann 7 жил өмнө
parent
commit
747cfadf79

+ 1 - 1
src/borg/repository.py

@@ -266,7 +266,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):
+                if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.ENOTSUP):
                     logger.warning("Hardlink failed, cannot securely erase old config file")
                 else:
                     raise