From: Wayne Davison Date: Sat, 14 Jul 2007 04:20:13 +0000 (+0000) Subject: The delete-during code needs to skip directories that don't exist X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4d745d3cf59e4e36a2e9bede838a175fbc1064eb The delete-during code needs to skip directories that don't exist yet in --dry-run mode to avoid outputting bogus delete details. --- diff --git a/generator.c b/generator.c index 1064ff58..b3a31f05 100644 --- a/generator.c +++ b/generator.c @@ -1909,7 +1909,7 @@ void generate_files(int f_out, const char *local_name) f_name(fp, fbuf); ndx = cur_flist->ndx_start - 1; recv_generator(fbuf, fp, ndx, itemizing, code, f_out); - if (delete_during) { + if (delete_during && dry_run < 2) { if (BITS_SETnUNSET(fp->flags, FLAG_XFER_DIR, FLAG_MISSING_DIR)) { dev_t dirdev; if (one_file_system) {