From 35a388b1415df7aeaa8ba1a06a87ab9256986bc8 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 16 Sep 2005 16:10:01 +0000 Subject: [PATCH] Really fix '!' in a .cvsignore file this time. --- exclude.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exclude.c b/exclude.c index 8486fb08..a83584ab 100644 --- 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); -- 2.34.1