diff --git a/src/borg/repository.py b/src/borg/repository.py index e59e3acd85..740af95cb4 100644 --- a/src/borg/repository.py +++ b/src/borg/repository.py @@ -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: