summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-02-04 15:16:08 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-02-04 15:16:08 +0000
commit72311a2dd2d471da7e3c2ffa89a13312547f3812 (patch)
tree7067b6c73c9669c4bde09a6e02270bee1e7c4cf2 /usr.sbin/syslogd
parent48b4ca8e6a57c62a30178ad743504003bfd60b92 (diff)
downloadFreeBSD-src-72311a2dd2d471da7e3c2ffa89a13312547f3812.zip
FreeBSD-src-72311a2dd2d471da7e3c2ffa89a13312547f3812.tar.gz
This seems to stop syslog console messages looping. The problem
is that LOG_FAC doesn't do quite what you think it does. PR: 24704
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 09a150d..dc017ac 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -710,7 +710,7 @@ printsys(p)
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 */
OpenPOWER on IntegriCloud