From 747cfadf795e0b7498bf69b16bba1cfa8f394ba2 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 10 Oct 2017 01:57:58 +0200 Subject: [PATCH] catch ENOTSUP for os.link, fixes #3107 (cherry picked from commit 203a5c8f197904b51fbced32f42cf0c383130292) --- src/borg/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/repository.py b/src/borg/repository.py index 5320b56a2..e327ddace 100644 --- a/src/borg/repository.py +++ b/src/borg/repository.py @@ -266,7 +266,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): + if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.ENOTSUP): logger.warning("Hardlink failed, cannot securely erase old config file") else: raise