mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
be more clear in secure-erase warning message, fixes #3591
(cherry picked from commit fe65ccf95a
)
This commit is contained in:
parent
1e7c87b23d
commit
920e144c81
1 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,8 @@ def save_config(self, path, config):
|
||||||
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.ENOSYS, errno.EPERM, errno.ENOTSUP):
|
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.ENOTSUP):
|
||||||
logger.warning("Hardlink failed, cannot securely erase old config file")
|
logger.warning("Failed to securely erase old repository config file (hardlinks not supported>). "
|
||||||
|
"Old repokey data, if any, might persist on physical storage.")
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue