bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] [PATCH] fix whitespace parsing in syslogd


From: Robert Millan
Subject: [bug-inetutils] [PATCH] fix whitespace parsing in syslogd
Date: Thu, 28 Aug 2003 19:32:18 +0000
User-agent: Mutt/1.5.4i

Hi!

The attached patch (by Julian Gilbey <address@hidden>) fixes the unproper
whitespace parsing in syslogd, which caused it not to write any messages
in /var/log/messages for some syslog.conf contents.

For details, I quote him:

On Fri, Aug 22, 2003 at 02:12:42PM +0100, Julian Gilbey wrote:
> My /etc/syslog.conf is attached.  Since moving from syslogd to
> inetutils-syslogd, I have had no messages at all in
> /var/log/messages.  I don't know why this is.

Here's the bug:

> *.=info;*.=notice;*.=warn;\
>       auth,authpriv.none;\
>       cron,daemon.none;\
>       mail,news.none          -/var/log/messages

The continuation lines begin with whitespace, which is interpreted by
syslogd as meaning that auth,authpriv.none etc. are users.

So I guess there needs to be clarification in the manpage or
modification of the config-file parsing routine (around line 1700
onwards) to handle this: whitespace at the beginning of continuation
lines should be ignored.  I could rewrite something next week if that
would be of use.


-- 
Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T, Ainulindale (Silmarillion)

Attachment: syslogd.c.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]