summaryrefslogtreecommitdiffstats
path: root/lib/backup-files.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-01-25 18:49:16 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-01-25 18:49:16 +0000
commit99e25184f46855b3d9e8bba327d659a031e9d134 (patch)
treedca6ef54901c2eb22de8fd4056c7d1820947a29c /lib/backup-files.c
parent6eed529deb80e3ff8bc739a104aa93b2bf6df56f (diff)
downloadquilt-99e25184f46855b3d9e8bba327d659a031e9d134.tar.gz
- lib/backup-files.c: Don't fail when link(1) returns ENOSYS, and
try to copy in that case.
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;