In get_local_name(), if we would have created the destination dir but
authorWayne Davison <wayned@samba.org>
Thu, 5 Aug 2004 18:17:44 +0000 (18:17 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 5 Aug 2004 18:17:44 +0000 (18:17 +0000)
were prevented by dry_run being set, increment dry_run so that the
generator knows that all the files are missing.

main.c

diff --git a/main.c b/main.c
index 1f2cee3..412c2e2 100644 (file)
--- 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)) {