X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ebeacb36fb298218bf4195ba3bdddaf8752488bb..7aac6604c4642b93b619ac03c56e9877437bcce3:/rsync.c diff --git a/rsync.c b/rsync.c index a97357d9..47b49a6f 100644 --- a/rsync.c +++ b/rsync.c @@ -239,15 +239,15 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file, { int ret; - if (make_backups && !make_backup(fname)) - return; - if (inplace) { if (verbose > 2) rprintf(FINFO, "finishing %s\n", fname); goto do_set_perms; } + if (make_backups && !make_backup(fname)) + return; + /* Change permissions before putting the file into place. */ set_perms(fnametmp, file, NULL, ok_to_set_time ? 0 : PERMS_SKIP_MTIME);