From e5a96f0f5432843c0412b24550012e00fafe0da4 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 5 Aug 2004 18:17:44 +0000 Subject: [PATCH] In get_local_name(), if we would have created the destination dir but were prevented by dry_run being set, increment dry_run so that the generator knows that all the files are missing. --- main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 1f2cee36..412c2e2d 100644 --- a/main.c +++ b/main.c @@ -379,9 +379,13 @@ static char *get_local_name(struct file_list *flist,char *name) if (do_mkdir(name,0777 & ~orig_umask) != 0) { rsyserr(FERROR, errno, "mkdir %s failed", full_fname(name)); exit_cleanup(RERR_FILEIO); - } else { - if (verbose > 0) - rprintf(FINFO,"created directory %s\n",name); + } + if (verbose > 0) + rprintf(FINFO, "created directory %s\n", name); + + if (dry_run) { + dry_run++; + return NULL; } if (!push_dir(name)) { -- 2.34.1