summaryrefslogtreecommitdiffstats
path: root/lib/backup-files.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/backup-files.c')
-rw-r--r--lib/backup-files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backup-files.c b/lib/backup-files.c
index f958be5..9f25726 100644
--- a/lib/backup-files.c
+++ b/lib/backup-files.c
@@ -207,7 +207,8 @@ link_or_copy_file(const char *from, const struct stat *st, const char *to)
{
if (link(from, to) == 0)
return 0;
- if (errno != EXDEV && errno != EPERM && errno != EMLINK) {
+ if (errno != EXDEV && errno != EPERM &&
+ errno != EMLINK && errno != ENOSYS) {
fprintf(stderr, "Could not link file `%s' to `%s': %s\n",
from, to, strerror(errno));
return 1;