Commit 49d6fdc0 authored by Andrew Tridgell's avatar Andrew Tridgell

patch from Jim Delahanty <mail_us@swbell.net> to ensure files are

deleted after being backed up in a rename operation
parent 8b35435f
......@@ -134,10 +134,14 @@ static int robust_move(char *src, char *dst)
int failed;
while (keep_trying) {
if (keep_path_extfs)
failed = copy_file (src, dst, 0755);
else
if (keep_path_extfs) {
failed = copy_file(src, dst, 0755);
if (!failed) {
do_unlink(src);
}
} else {
failed = robust_rename (src, dst);
}
if (failed) {
if (verbose > 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment