瀏覽代碼

Merge pull request #3131 from ThomasWaldmann/support-no-hardlinks-1.1

catch ENOTSUP for os.link, fixes #3107
TW 7 年之前
父節點
當前提交
c5b02cebc3
共有 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