summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-09-15 07:40:50 -0700
committerWayne Davison <wayned@samba.org>2011-09-15 07:48:31 -0700
commit033697d96db0d28fe7b68a191665a8db80375bdb (patch)
treea75d50a72f3e242051b7225f976333dde84e7a2d
parentabc796661d6d3a5b37cb0642e7e9885f6a271d60 (diff)
downloadrsync-033697d96db0d28fe7b68a191665a8db80375bdb.tar.gz
Make --delete-excluded work better with --filter=merge.
-rw-r--r--exclude.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/exclude.c b/exclude.c
index 6101dda8..c8edec53 100644
--- a/exclude.c
+++ b/exclude.c
@@ -901,13 +901,9 @@ static const char *parse_rule_tok(const char *p, uint32 mflags, int xflags,
exit_cleanup(RERR_SYNTAX);
}
- /* --delete-excluded turns an un-modified include/exclude into a
- * sender-side rule. We also affect per-dir merge files that take
- * no prefixes as a simple optimization. */
+ /* --delete-excluded turns an un-modified include/exclude into a sender-side rule. */
if (delete_excluded
- && !(new_mflags & (MATCHFLG_RECEIVER_SIDE|MATCHFLG_SENDER_SIDE))
- && (!(new_mflags & MATCHFLG_PERDIR_MERGE)
- || new_mflags & MATCHFLG_NO_PREFIXES))
+ && !(new_mflags & (MATCHFLG_RECEIVER_SIDE|MATCHFLG_SENDER_SIDE|MATCHFLG_MERGE_FILE|MATCHFLG_PERDIR_MERGE)))
new_mflags |= MATCHFLG_SENDER_SIDE;
*len_ptr = len;