X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cbb5fa4f07a6cb017a6a9ddbb8f33e3aa18d489a..5d24ee71ad855c73fe4d86a2721b342abdd8f149:/flist.c diff --git a/flist.c b/flist.c index 5058cc5e..c342539e 100644 --- a/flist.c +++ b/flist.c @@ -1524,8 +1524,9 @@ static void clean_flist(struct file_list *flist, int strip_root, int no_dups) } /* Make sure that if we unduplicate '.', that we don't * lose track of a user-specified top directory. */ - if (flist->files[drop]->flags & FLAG_TOP_DIR) - flist->files[keep]->flags |= FLAG_TOP_DIR; + j = flist->files[drop]->flags & (FLAG_TOP_DIR|FLAG_DEL_HERE); + if (j) + flist->files[keep]->flags |= j; clear_file(drop, flist);