Explorar el Código

catch ENOTSUP for os.link, fixes #3107

(cherry picked from commit 203a5c8f197904b51fbced32f42cf0c383130292)
Thomas Waldmann hace 7 años
padre
commit
747cfadf79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/borg/repository.py

+ 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