mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
commit
92acc46fad
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ def save_config(self, path, config):
|
||||||
try:
|
try:
|
||||||
os.link(config_path, old_config_path)
|
os.link(config_path, old_config_path)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno in (errno.EMLINK, errno.EPERM):
|
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM):
|
||||||
logger.warning("Hardlink failed, cannot securely erase old config file")
|
logger.warning("Hardlink failed, cannot securely erase old config file")
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue