summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--grammar/lexer.l2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c14ccb04..1a1dbe83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -51,6 +51,10 @@ Version 6.4.3 [V6-STABLE] 2012-??-??
- bugfix: sysklogd-emulating standard template was no longer present in v6
This was obviously lost during the transition to the new config format.
Thanks to Milan Bartos for alerting us and a patch!
+- bugfix: some valid legacy PRI filters were flagged as errornous
+ closes: http://bugzilla.adiscon.com/show_bug.cgi?id=358
+ This happend to filters of the style "local0,local1.*", where the
+ multiple facilities were comma-separated.
---------------------------------------------------------------------------
Version 6.4.2 [V6-STABLE] 2012-09-20
- bugfix: potential abort, if action queue could not be properly started
diff --git a/grammar/lexer.l b/grammar/lexer.l
index b006b75f..4f79c9aa 100644
--- a/grammar/lexer.l
+++ b/grammar/lexer.l
@@ -170,7 +170,7 @@ int fileno(FILE *stream);
"action"[ \n\t]*"(" { BEGIN INOBJ; return BEGIN_ACTION; }
^[ \t]*:\$?[a-z\-]+[ ]*,[ ]*!?[a-z]+[ ]*,[ ]*\".*\" {
yylval.s = strdup(yytext); return PROPFILT; }
-^[ \t]*[\*a-z][,\*a-z]*[0-7]*\.[,!=;\.\*a-z0-7]+ { yylval.s = strdup(yytext); return PRIFILT; }
+^[ \t]*[\*a-z][\*a-z]*[0-7]*[\.,][,!=;\.\*a-z0-7]+ { yylval.s = strdup(yytext); return PRIFILT; }
"~" |
"*" |
\-\/[^*][^\n]* |