]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_internal): Set `new_dst' when the move_mode rename fails,
authorJim Meyering <jim@meyering.net>
Sun, 27 Aug 2000 08:46:21 +0000 (08:46 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Aug 2000 08:46:21 +0000 (08:46 +0000)
since we then unlink the destination file.

src/copy.c

index a05c546c8c14ba71460cdbb6c2f71f2602ca1038..0a62373ce3e1a757dadf4910ef26312096bd0842 100644 (file)
@@ -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;