From ae5a552bf1237608804e07d83c6936737eeb728f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 10 Mar 2002 08:28:30 +0000 Subject: [PATCH] (copy_reg): Don't exit upon finding a replaced file. Instead, just skip it like the diagnostic says. Reported by Paul Eggert. --- src/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3