Commit 077e59b7 authored by Wayne Davison's avatar Wayne Davison

The inplace handling in finish_transfer() now passes PERMS_SKIP_MTIME

to set_perms() if ok_to_set_time wasn't specified.
parent 007e3c0e
......@@ -243,8 +243,7 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
if (inplace) {
if (verbose > 2)
rprintf(FINFO, "finishing %s\n", fname);
set_perms(fname, file, NULL, 0);
return;
goto do_set_perms;
}
/* move tmp file over real file */
......@@ -256,10 +255,10 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
ret == -2 ? "copy" : "rename",
full_fname(fnametmp), fname);
do_unlink(fnametmp);
} else {
set_perms(fname, file, NULL,
ok_to_set_time ? 0 : PERMS_SKIP_MTIME);
return;
}
do_set_perms:
set_perms(fname, file, NULL, ok_to_set_time ? 0 : PERMS_SKIP_MTIME);
}
const char *who_am_i(void)
......
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