[syslog-ng] Re: 1.4.0 rc2 bug
Balazs Scheidler
bazsi@balabit.hu
Wed, 23 Feb 2000 11:26:13 +0100
> The .. (DOTDOT) range operator for priority filters seems to be broken with
> this release.
try this patch:
Index: cfg-lex.l
===================================================================
RCS file: /home/bazsi/cvs/syslog-ng/src/cfg-lex.l,v
retrieving revision 1.8
diff -u -r1.8 cfg-lex.l
--- cfg-lex.l 2000/02/22 17:50:29 1.8
+++ cfg-lex.l 2000/02/23 10:24:15
@@ -142,7 +142,7 @@
0x{digit}+ { yylval.num = strtol(yytext, NULL, 16); return NUMBER; }
0{digit}+ { yylval.num = strtol(yytext, NULL, 8); return NUMBER; }
{digit}+ { yylval.num = atoi(yytext); return NUMBER; }
-({word}+(\.)?)* { return check_reserved_words(yytext); }
+({word}+(\.)?)*{word}+ { return check_reserved_words(yytext); }
\( { return '('; }
\) { return ')'; }
\; { return ';'; }
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
url: http://www.balabit.hu/pgpkey.txt