]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Really fix '!' in a .cvsignore file this time.
authorWayne Davison <wayned@samba.org>
Fri, 16 Sep 2005 16:10:01 +0000 (16:10 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 16 Sep 2005 16:10:01 +0000 (16:10 +0000)
exclude.c

index 8486fb080bbee28e1198f2aed39e912e46a4c87d..a83584aba783f33401fdd57b639ddbee0d1e1777 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -827,7 +827,8 @@ static const char *parse_rule_tok(const char *p, uint32 mflags, int xflags,
                len = strlen((char*)s);
 
        if (new_mflags & MATCHFLG_CLEAR_LIST) {
-               if (!(xflags & XFLG_OLD_PREFIXES) && len) {
+               if (!(mflags & MATCHFLG_NO_PREFIXES)
+                && !(xflags & XFLG_OLD_PREFIXES) && len) {
                        rprintf(FERROR,
                                "'!' rule has trailing characters: %s\n", p);
                        exit_cleanup(RERR_SYNTAX);