summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-03-10 08:28:30 +0000
committerJim Meyering <jim@meyering.net>2002-03-10 08:28:30 +0000
commitae5a552bf1237608804e07d83c6936737eeb728f (patch)
treee254a7c451f3570b35254a8aca2fb0a5d958017e /src/copy.c
parent0d4eeae035540918788a372f64e31ccbbdaacef9 (diff)
downloadcoreutils-ae5a552bf1237608804e07d83c6936737eeb728f.tar.xz
(copy_reg): Don't exit upon finding a replaced file.
Instead, just skip it like the diagnostic says. Reported by Paul Eggert.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c
index 6ce0a2bc4..017adf8d2 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -234,7 +234,7 @@ copy_reg (const char *src_path, const char *dst_path,
saved ones obtained via a previous call to stat. */
if (! SAME_INODE (*src_sb, src_open_sb))
{
- error (EXIT_FAILURE, 0,
+ error (0, 0,
_("skipping file %s, as it was replaced while being copied"),
quote (src_path));
return_val = -1;