mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 21:04:15 -04:00
Simplified the last change a bit.
This commit is contained in:
1 parent
5d24ee71ad
commit
0f0b2e66b8
1 file changed
+2
-3
@@ -1524,9 +1524,8 @@ 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. */
|
||||
j = flist->files[drop]->flags & (FLAG_TOP_DIR|FLAG_DEL_HERE);
|
||||
if (j)
|
||||
flist->files[keep]->flags |= j;
|
||||
flist->files[keep]->flags |= flist->files[drop]->flags
|
||||
& (FLAG_TOP_DIR|FLAG_DEL_HERE);
|
||||
|
||||
clear_file(drop, flist);
|
||||
|
||||
|
||||
Reference in new issue
Block a user