diff options
| author | Wayne Davison <wayned@samba.org> | 2005-04-07 18:06:06 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-04-07 18:06:06 +0000 |
| commit | 664cf3278ab078a8a5f64c07fa164f8e4f387815 (patch) | |
| tree | b6024c05d95f6c2243ed7bf6fc53d87006cb8aa7 /exclude.c | |
| parent | cd36049cd18485acda2ba29791ebc827888448ea (diff) | |
| download | android_external_rsync-664cf3278ab078a8a5f64c07fa164f8e4f387815.tar.gz android_external_rsync-664cf3278ab078a8a5f64c07fa164f8e4f387815.tar.bz2 android_external_rsync-664cf3278ab078a8a5f64c07fa164f8e4f387815.zip | |
Make sure that "- !" or "+ !" aren't interpreted as a list-clearing
token.
Diffstat (limited to 'exclude.c')
| -rw-r--r-- | exclude.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -674,8 +674,7 @@ static const char *parse_rule_tok(const char *p, uint32 mflags, int xflags, } else if (*s == '+' && s[1] == ' ') { new_mflags |= MATCHFLG_INCLUDE; s += 2; - } - if (*s == '!') + } else if (*s == '!') new_mflags |= MATCHFLG_CLEAR_LIST; /* Tentative! */ } else { char ch = 0, *mods = ""; |
