Browse Source

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

catch ENOTSUP for os.link, fixes #3107
TW 7 năm trước cách đây
mục cha
commit
c5b02cebc3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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