bin/88215: [PATCH] syslogd does not pass cleanly parameters to cfline()

Gleb Smirnoff glebius at FreeBSD.org
Tue Nov 8 04:50:29 PST 2005


The following reply was made to PR bin/88215; it has been noted by GNATS.

From: Gleb Smirnoff <glebius at FreeBSD.org>
To: Daniel Molina Wegener <dmw at unete.cl>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: bin/88215: [PATCH] syslogd does not pass cleanly parameters to cfline()
Date: Tue, 8 Nov 2005 15:43:30 +0300

 On Sun, Oct 30, 2005 at 04:22:42AM -0300, Daniel Molina Wegener wrote:
 D>    In the syslogd function init(), parameters passed to cfline()
 D> are not clean when the user attempt to use a remote host entry
 D> as the source of syslog messages.
 D> 
 D>    Instead of a clean host name, it passes the hostname and the
 D> last program specification in the syslog.conf file.
 D> 
 D> >How-To-Repeat:
 D> 
 D>    Put any program specification and start syslogd with -vv and -d
 D> flags, you can see the parameters passed to cfline() function in
 D> a list.
 
 This is expected behavior, it is documented in manual:
 
 
      A program or hostname specification may be reset by giving the program or
      hostname as `*'.
 
 This means, that program and hostname specifications are sticky and should
 be reset explicitly, if set once. Many people find this confusing (me too).
 
 I would like to change syslogd so that it resets both program and hostname
 to '*' after any regular configuration line. But before commiting this we
 need positive review from some people, and no negative review. May be current@
 mailing list will be the correct choice. You should raise this question
 on mailing lists, if you want to discuss this issue. In this case I will set
 PR to analyzed state. If you agree with current documented behavior, then you
 can ask for PR to be closed.
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-bugs mailing list