diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-02-04 15:16:08 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-02-04 15:16:08 +0000 |
commit | 72311a2dd2d471da7e3c2ffa89a13312547f3812 (patch) | |
tree | 7067b6c73c9669c4bde09a6e02270bee1e7c4cf2 /usr.sbin/syslogd/syslogd.c | |
parent | 48b4ca8e6a57c62a30178ad743504003bfd60b92 (diff) | |
download | FreeBSD-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/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
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 */ |