diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-06 12:19:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-06 12:19:22 +0000 |
commit | 7cea35ec0b87c8125f3ae29f0abbd737498e28e5 (patch) | |
tree | f823298d110e1273ff551e489d83757f2b9bfce5 | |
parent | e4dfc35259023779840b3c2263c52e92187a2f90 (diff) |
Fix a bug noticed by Oleg I. Vdovikin, oleg at cs dot msu dot su.
This code in uClibc would attempt to set the default facility if
none was specified. Except none being specified is 0, which is
also LOG_KERN, therefore klogd could never get kernel messages
logged as LOG_KERN.
-rw-r--r-- | libc/misc/syslog/syslog.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index d95be3e5e..250cb6ddc 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -173,10 +173,6 @@ vsyslog( int pri, const char *fmt, va_list ap ) if (LogFile < 0 || !connected) openlog(LogTag, LogStat | LOG_NDELAY, 0); - /* Set default facility if none specified. */ - if ((pri & LOG_FACMASK) == 0) - pri |= LogFacility; - /* Build the message. We know the starting part of the message can take * no longer than 64 characters plus length of the LogTag. So it's * safe to test only LogTag and use normal sprintf everywhere else. |