mirror of https://github.com/borgbackup/borg.git
Merge pull request #3121 from ThomasWaldmann/support-no-hardlinks
catch ENOTSUP for os.link, fixes #3107
This commit is contained in:
commit
8455ab3ff2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue