Make --omit-dir-times avoid early-create directories.
[rsync.git] / generator.c
index 53e9fbe58d42bf22e7353f33978bb5e2811cb5ec..0f7a5169d49d12a4ad68140b65b2085488784b1b 100644 (file)
@@ -1353,6 +1353,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
                } else
                        added_perms = 0;
                if (is_dir < 0) {
+                       if (!(preserve_times & PRESERVE_DIR_TIMES))
+                               return;
                        /* In inc_recurse mode we want to make sure any missing
                         * directories get created while we're still processing
                         * the parent dir (which allows us to touch the parent