diff --git a/src/borg/repository.py b/src/borg/repository.py index 47a520157..b6340c4ac 100644 --- a/src/borg/repository.py +++ b/src/borg/repository.py @@ -190,7 +190,7 @@ class Repository: 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