diff options
author | Jim Meyering <jim@meyering.net> | 2000-08-27 08:46:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-08-27 08:46:21 +0000 |
commit | 2c8881fa4e5070105c6b19b28e6f9d12bae74fb6 (patch) | |
tree | 9e833226098b77a92106ee61b9b50d69140a86dc /src | |
parent | a24688898762646670a02adc5032df7c701dbd49 (diff) | |
download | coreutils-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.c | 2 |
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; |