From: Jim Meyering Date: Sun, 27 Aug 2000 08:46:21 +0000 (+0000) Subject: (copy_internal): Set `new_dst' when the move_mode rename fails, X-Git-Tag: FILEUTILS-4_0z~83 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2c8881fa4e5070105c6b19b28e6f9d12bae74fb6;p=thirdparty%2Fcoreutils.git (copy_internal): Set `new_dst' when the move_mode rename fails, since we then unlink the destination file. --- diff --git a/src/copy.c b/src/copy.c index a05c546c8c..0a62373ce3 100644 --- a/src/copy.c +++ b/src/copy.c @@ -699,6 +699,8 @@ copy_internal (const char *src_path, const char *dst_path, quote_n (0, src_path), quote_n (1, dst_path)); return 1; } + + new_dst = 1; } delayed_fail = 0;