1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 17:27:31 +00:00

catch exception for os.link when hardlinks are not supported

This commit is contained in:
Patrick Goering 2017-04-08 17:10:02 +02:00
parent 2c1607caa6
commit f64f432e51

View file

@ -190,7 +190,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.EPERM):
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM):
logger.warning("Hardlink failed, cannot securely erase old config file")
else:
raise