From owner-freebsd-stable Fri Feb 2 18:17:20 2001 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 865C637B401; Fri, 2 Feb 2001 18:16:58 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 3 Feb 2001 02:16:49 +0000 (GMT) Date: Sat, 3 Feb 2001 02:16:48 +0000 From: David Malone To: Tony Byrne Cc: Andrew J Caines , freebsd-stable@FreeBSD.ORG, phk@FreeBSD.ORG, echriste@702com.net Subject: Re: syslogd throwing a hissy fit Message-ID: <20010203021648.A73132@walton.maths.tcd.ie> References: <20010124223705.A92362@gosset.maths.tcd.ie> <5qou6tkiba9jk6nbjepe9hn2g45hq560ep@4ax.com> <20010121021039.A442@hal9000.bsdonline.org> <7q9u6t0tkj5ktplad6k8468koar3j8jvi9@4ax.com> <20010124223705.A92362@gosset.maths.tcd.ie> <20010128162429.A412@hal9000.bsdonline.org> <20010129180459.D372@hal9000.bsdonline.org> <4mmd7tkja6j4j8qfhmidddi108eg188t2h@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4mmd7tkja6j4j8qfhmidddi108eg188t2h@4ax.com>; from tony@nua.ie on Tue, Jan 30, 2001 at 03:17:57PM +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jan 30, 2001 at 03:17:57PM +0000, Tony Byrne wrote: > http://www.freebsd.org/cgi/query-pr.cgi?pr=24704 It turns out that syslogd is not checking the lof facility in the correct way, and so is logging console messages back to the console. The following patch should fix the problem. I'll commit it to -current over the weekend unless phk objects, and merge it into -stable next week. David. Index: syslogd.c =================================================================== RCS file: /cvs/FreeBSD-CVS/src/usr.sbin/syslogd/syslogd.c,v retrieving revision 1.74 diff -u -r1.74 syslogd.c --- syslogd.c 2000/12/16 18:25:48 1.74 +++ syslogd.c 2001/02/03 02:06:52 @@ -710,7 +710,7 @@ pri = 10 * pri + (*p - '0'); if (*p == '>') ++p; - if (LOG_FAC(pri) == LOG_CONSOLE) + if ((pri & LOG_FACMASK) == LOG_CONSOLE) flags |= IGN_CONS; } else { /* kernel printf's come out on console */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message