From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 8 12:50:29 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4CC816A420 for ; Tue, 8 Nov 2005 12:50:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93E2943D55 for ; Tue, 8 Nov 2005 12:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA8CoN4M011350 for ; Tue, 8 Nov 2005 12:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA8CoNao011349; Tue, 8 Nov 2005 12:50:23 GMT (envelope-from gnats) Date: Tue, 8 Nov 2005 12:50:23 GMT Message-Id: <200511081250.jA8CoNao011349@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gleb Smirnoff Cc: Subject: Re: bin/88215: [PATCH] syslogd does not pass cleanly parameters to cfline() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gleb Smirnoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 12:50:29 -0000 The following reply was made to PR bin/88215; it has been noted by GNATS. From: Gleb Smirnoff To: Daniel Molina Wegener Cc: FreeBSD-gnats-submit@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