The delete-during code needs to skip directories that don't exist

yet in --dry-run mode to avoid outputting bogus delete details.
This commit is contained in:
Wayne Davison
2007-07-14 04:20:13 +00:00
parent 8798be8e63
commit 4d745d3cf5

View File

@@ -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) {