diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-01-25 18:49:16 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-01-25 18:49:16 +0000 |
commit | 99e25184f46855b3d9e8bba327d659a031e9d134 (patch) | |
tree | dca6ef54901c2eb22de8fd4056c7d1820947a29c | |
parent | 6eed529deb80e3ff8bc739a104aa93b2bf6df56f (diff) | |
download | quilt-99e25184f46855b3d9e8bba327d659a031e9d134.tar.gz |
- lib/backup-files.c: Don't fail when link(1) returns ENOSYS, and
try to copy in that case.
-rw-r--r-- | lib/backup-files.c | 3 | ||||
-rw-r--r-- | quilt.changes | 6 |
2 files changed, 8 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; diff --git a/quilt.changes b/quilt.changes index 323ff58..1e0448f 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jan 25 19:49:08 CET 2006 - agruen@suse.de + +- lib/backup-files.c: Don't fail when link(1) returns ENOSYS, and + try to copy in that case. + +------------------------------------------------------------------- Wed Jan 25 19:27:11 CET 2006 - agruen@suse.de - lib/backup-files.c: Fix another missed optimization. |