aboutsummaryrefslogtreecommitdiffstats
path: root/exclude.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-11-21 17:46:54 +0000
committerWayne Davison <wayned@samba.org>2006-11-21 17:46:54 +0000
commit2a28dd32fddfcb86a8ece12628f765c9f8e88d08 (patch)
tree1758644203c83ecee094eb552ae6e527e14e7576 /exclude.c
parent65e83e097c8635856816a07bab5e330a6615dfc1 (diff)
downloadandroid_external_rsync-2a28dd32fddfcb86a8ece12628f765c9f8e88d08.tar.gz
android_external_rsync-2a28dd32fddfcb86a8ece12628f765c9f8e88d08.tar.bz2
android_external_rsync-2a28dd32fddfcb86a8ece12628f765c9f8e88d08.zip
The exclude code wasn't sending the MATCHFLG_NEGATE (!) char to the
other side.
Diffstat (limited to 'exclude.c')
-rw-r--r--exclude.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exclude.c b/exclude.c
index 1ed19dd4..11b187c6 100644
--- a/exclude.c
+++ b/exclude.c
@@ -1070,6 +1070,8 @@ char *get_rule_prefix(int match_flags, const char *pat, int for_xfer,
else
legal_len = 0;
+ if (match_flags & MATCHFLG_NEGATE)
+ *op++ = '!';
if (match_flags & MATCHFLG_CVS_IGNORE)
*op++ = 'C';
else {