mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 04:37:34 +00:00
catch ENOTSUP for os.link, fixes #3107
(cherry picked from commit 203a5c8f19
)
This commit is contained in:
parent
f407de07a8
commit
747cfadf79
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ def save_config(self, path, config):
|
|||
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 a new issue