소스 검색

catch ENOTSUP for os.link, fixes #3107

(cherry picked from commit 203a5c8f197904b51fbced32f42cf0c383130292)
Thomas Waldmann 7 년 전
부모
커밋
747cfadf79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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