[syslog-ng] requirement for @version directive in 3.x config file

Balazs Scheidler bazsi at balabit.hu
Thu Jan 14 10:00:22 CET 2010


On Wed, 2010-01-06 at 10:02 +0100, Guillaume Rousse wrote:
> Le 05/01/2010 07:53, Paul B. Henson a écrit :
> >
> > Replying to myself for the sake of the archives.
> >
> > I realized I can use the syslog-ng include functionality to solve my
> > problem; the main config file can just be the @version directive and an
> > include directive to read our real config file renamed to something else.
> >
> > Sorry for the bother...
> However, I'm joining the complaint here: the parser should be able to 
> ignore comments when determining what is the first line of the 
> configuration file. Our syslog-ng configuration file is the only one 
> that can't start with a SVN revision number for this reason :)

Thanks for reporting this, it is indeed a annoying fact, thus I've just
commited/pushed this patch to syslog-ng OSE 3.1. It will eventually be
backported to the 3.0 branch as well, but I guess it will apply cleanly
to 3.0 if you are in a rush.

commit e719988e0e0716f2366b8d4faa340bbf42aacf3a
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Thu Jan 14 09:59:03 2010 +0100

    config parser: accept comments/empty lines before the version mark
    
    This patch implements functionality to accept empty lines and lines beginning
    with a '#' before the "@version" mark.
    
    Reported-By: Paul B. Hanson & Guillaume Rousse



-- 
Bazsi



More information about the syslog-ng mailing list