mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-08 16:23:42 -04:00
Merge pull request #4773 from ThomasWaldmann/ignore-hardlink-eacces
ignore EACCES (errno 13) when hardlinking, fixes #4730
This commit is contained in:
commit
008ee01ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,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, errno.ENOTSUP):
|
||||
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP):
|
||||
logger.warning("Failed to securely erase old repository config file (hardlinks not supported>). "
|
||||
"Old repokey data, if any, might persist on physical storage.")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue