X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d336388403e89f9c3ce7f5e0db564fe9fd4e1952..65e4cda05976751030ccf280c96edb627584a496:/receiver.c diff --git a/receiver.c b/receiver.c index 88552f4b..bb3097a7 100644 --- a/receiver.c +++ b/receiver.c @@ -82,7 +82,7 @@ void delete_files(struct file_list *flist) } for (j = 0; j < flist->count; j++) { - if (!(flist->files[j]->flags & FLAG_TOP_DIR) + if (!(flist->files[j]->flags & FLAG_DEL_START) || !S_ISDIR(flist->files[j]->mode)) continue; @@ -111,7 +111,7 @@ void delete_files(struct file_list *flist) } } else { delete_file(f, S_ISDIR(mode) - ? DEL_DIR | DEL_NO_RECURSE : 0); + ? DEL_DIR | DEL_RECURSE : 0); } deletion_count++; }