[syslog-ng] A Bug and few sugestions..

Balazs Scheidler bazsi@balabit.hu
Fri, 26 May 2000 10:37:28 +0200


> I'm running Syslog-ng 1.4.3 as a loghost  and on a workstation behind a
> gateway... both RedHat 6.1
> 
> hmmm problems i've found...
> 
> '#' seems to work not correctly... 
> 	i've comment a few things in my syslog-ng.conf... and if the comment
> 	was not at the beginning of a line.. i got a parsing error..

syslog-ng accepted comments if they begin at the first position. Does this
patch help?

diff -u -r1.9.2.2 cfg-lex.l
--- cfg-lex.l   2000/03/24 10:57:28     1.9.2.2
+++ cfg-lex.l   2000/05/26 08:36:08
@@ -136,7 +136,7 @@
 %x qstring
 %%

-^\#.*$                     ;
+\#.*$                      ;
 \n                        { linenum++; }
 {white}+                  ;
 \.\.                       { return DOTDOT; }

> '#' seems not to comment out log, source, ... -statements....
> 	if i comment out the destination and filter rule for ppp from the
> 	standart debian example syslog-ng.conf .... i got a parsing error...
> 	saying something like... ppp was an unresolve identifer...

I couldn't reproduce this problem.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt