From: Jim Meyering Date: Sun, 10 Mar 2002 08:28:30 +0000 (+0000) Subject: (copy_reg): Don't exit upon finding a replaced file. X-Git-Tag: FILEUTILS-4_1_7~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae5a552bf1237608804e07d83c6936737eeb728f;p=thirdparty%2Fcoreutils.git (copy_reg): Don't exit upon finding a replaced file. Instead, just skip it like the diagnostic says. Reported by Paul Eggert. --- diff --git a/src/copy.c b/src/copy.c index 6ce0a2bc4c..017adf8d2e 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;