Date: Sat, 3 Feb 2001 02:16:48 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Tony Byrne <tony@nua.ie> Cc: Andrew J Caines <A.J.Caines@altavista.net>, 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> In-Reply-To: <4mmd7tkja6j4j8qfhmidddi108eg188t2h@4ax.com>; from tony@nua.ie on Tue, Jan 30, 2001 at 03:17:57PM %2B0000 References: <20010124223705.A92362@gosset.maths.tcd.ie> <5qou6tkiba9jk6nbjepe9hn2g45hq560ep@4ax.com> <20010121021039.A442@hal9000.bsdonline.org> <7q9u6t0tkj5ktplad6k8468koar3j8jvi9@4ax.com> <s7hu6torq3c79usoqpgig3b56gg9d5n6jr@4ax.com> <20010124223705.A92362@gosset.maths.tcd.ie> <20010128162429.A412@hal9000.bsdonline.org> <alma7t4noj9u417v4t026fuuffkoflhf75@4ax.com> <20010129180459.D372@hal9000.bsdonline.org> <4mmd7tkja6j4j8qfhmidddi108eg188t2h@4ax.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010203021648.A73132>