From 7cea35ec0b87c8125f3ae29f0abbd737498e28e5 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 6 Apr 2004 12:19:22 +0000 Subject: 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. --- libc/misc/syslog/syslog.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libc/misc') 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. -- cgit v1.2.3