diff options
author | hpa <hpa> | 2004-09-23 02:22:02 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-09-23 02:22:02 +0000 |
commit | 9630aae0061ae3fc1f4fe9c82ca055610d1cf073 (patch) | |
tree | 7ea32f286e17033e6fc1ff15bc0a4d8b06d844d2 | |
parent | 6299024e7a50cd36d95d9ef812b1bfe80baa4f67 (diff) | |
download | tftp-hpa-9630aae0061ae3fc1f4fe9c82ca055610d1cf073.tar.gz |
Correct bug which caused "r" rules to get incorrectly rejected as "ri" rules
-rw-r--r-- | CHANGES | 5 | ||||
-rw-r--r-- | tftpd/remap.c | 3 | ||||
-rw-r--r-- | version | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -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* diff --git a/tftpd/remap.c b/tftpd/remap.c index 229ece5..3fa0fc0 100644 --- a/tftpd/remap.c +++ b/tftpd/remap.c @@ -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 */ } @@ -1 +1 @@ -0.39 +0.40 |