Commit 57d61719 authored by Wayne Davison's avatar Wayne Davison

Don't call copy_file() for a dry-run. (Thanks, Matt!)

parent ea118be5
......@@ -904,7 +904,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
#ifdef SUPPORT_HARD_LINKS
try_a_copy: /* Copy the file locally. */
#endif
if (copy_file(cmpbuf, fname, file->mode, 0) < 0) {
if (!dry_run && copy_file(cmpbuf, fname, file->mode, 0) < 0) {
if (verbose) {
rsyserr(FINFO, errno, "copy_file %s => %s",
full_fname(cmpbuf), fname);
......
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