Skip to content

Commit

Permalink
Merge pull request #4773 from ThomasWaldmann/ignore-hardlink-eacces
Browse files Browse the repository at this point in the history
ignore EACCES (errno 13) when hardlinking, fixes #4730
  • Loading branch information
ThomasWaldmann authored Oct 19, 2019
2 parents 212b438 + 851db7f commit 008ee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,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, 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:
Expand Down

0 comments on commit 008ee01

Please sign in to comment.