summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-27 08:46:21 +0000
committerJim Meyering <jim@meyering.net>2000-08-27 08:46:21 +0000
commit2c8881fa4e5070105c6b19b28e6f9d12bae74fb6 (patch)
tree9e833226098b77a92106ee61b9b50d69140a86dc /src
parenta24688898762646670a02adc5032df7c701dbd49 (diff)
downloadcoreutils-2c8881fa4e5070105c6b19b28e6f9d12bae74fb6.tar.xz
(copy_internal): Set `new_dst' when the move_mode rename fails,
since we then unlink the destination file.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c
index a05c546c8..0a62373ce 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;