Correct bug which caused "r" rules to get incorrectly rejected as "ri" rules

This commit is contained in:
hpa 2004-09-23 02:22:02 +00:00
parent 6299024e7a
commit 9630aae006
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,10 @@
$Id$
Changes in 0.40:
Fix bug which would cause "r" remapping rules to be
incorrectly rejected.
Changes in 0.39:
Support Perl-style \U...\E and \L...\E, as well as allow
matching rules to be inverted (execute if rule *doesn't*

View file

@ -234,7 +234,8 @@ static int parseline(char *line, struct rule *r, int lineno)
if ( !(r->rule_flags & RULE_REWRITE) )
r->rule_flags &= ~RULE_GLOBAL;
if ( r->rule_flags & (RULE_INVERSE|RULE_REWRITE) ) {
if ( (r->rule_flags & (RULE_INVERSE|RULE_REWRITE)) ==
(RULE_INVERSE|RULE_REWRITE) ) {
syslog(LOG_ERR, "r rules cannot be inverted, line %d: %s\n", lineno, line);
return -1; /* Error */
}

View file

@ -1 +1 @@
0.39
0.40