Don't create a path for a file marked as missing.
authorWayne Davison <wayne@opencoder.net>
Tue, 21 Jul 2020 18:22:24 +0000 (11:22 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 21 Jul 2020 18:54:48 +0000 (11:54 -0700)
generator.c

index adb3307cb8ea80079eb7f27ea148967cd56006e9..96a36bea5f41b594299aa9accff7634a4b68ee38 100644 (file)
@@ -1290,7 +1290,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
                                        exit_cleanup(RERR_PROTOCOL);
                                }
                        }
-                       if (relative_paths && !implied_dirs
+                       if (relative_paths && !implied_dirs && file->mode != 0
                         && do_stat(dn, &sx.st) < 0) {
                                if (dry_run)
                                        goto parent_is_dry_missing;