From 57d617192b6c02f192c42f725c01bbe1f45756bb Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 28 Oct 2007 20:03:00 +0000 Subject: [PATCH] Don't call copy_file() for a dry-run. (Thanks, Matt!) --- generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator.c b/generator.c index d82fa4aa..47803c11 100644 --- a/generator.c +++ b/generator.c @@ -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); -- 2.34.1