The exclude code wasn't sending the MATCHFLG_NEGATE (!) char to the
authorWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 17:46:54 +0000 (17:46 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 21 Nov 2006 17:46:54 +0000 (17:46 +0000)
other side.

exclude.c

index 1ed19dd..11b187c 100644 (file)
--- 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 {