diff --git a/receiver.c b/receiver.c index 29fd33c2..0aeda109 100644 --- a/receiver.c +++ b/receiver.c @@ -474,9 +474,6 @@ int recv_files(int f_in,struct file_list *flist,char *local_name) exit_cleanup(RERR_FILEIO); } - if (verbose > 2) - rprintf(FINFO,"renaming %s to %s\n",fnametmp,fname); - if (recv_ok || keep_partial) finish_transfer(fname, fnametmp, file, recv_ok); else diff --git a/rsync.c b/rsync.c index ffe8ed9e..125369bc 100644 --- a/rsync.c +++ b/rsync.c @@ -240,6 +240,8 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file, return; /* move tmp file over real file */ + if (verbose > 2) + rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname); ret = robust_rename(fnametmp, fname, file->mode & INITACCESSPERMS); if (ret < 0) { rsyserr(FERROR, errno, "%s %s -> \"%s\"",