From: Wayne Davison Date: Thu, 5 Aug 2004 18:17:44 +0000 (+0000) Subject: In get_local_name(), if we would have created the destination dir but X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e5a96f0f5432843c0412b24550012e00fafe0da4 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. --- 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)) {