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

catch exception for os.link when hardlinks are not supported

Patrick Goering 8 жил өмнө
parent
commit
f64f432e51

+ 1 - 1
src/borg/repository.py

@@ -190,7 +190,7 @@ class Repository:
             try:
                 os.link(config_path, old_config_path)
             except OSError as e:
-                if e.errno in (errno.EMLINK, errno.EPERM):
+                if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM):
                     logger.warning("Hardlink failed, cannot securely erase old config file")
                 else:
                     raise