From 36adca81f54d9479a440865acd29fc2fbcfbaf1d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jun 2004 10:07:17 +0000 Subject: Patch from Bastian Blank: On Sat, Jun 19, 2004 at 10:57:37PM +0200, Bastian Blank wrote: > The following patch changes klogd to use openlog/syslog themself > instead of calling syslog_msg which always calls the triple > openlog/syslog/closelog. Updated patch: get rid of syslog_msg entirely. Request from Erik Andersen. Bastian --- loginutils/getty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'loginutils') diff --git a/loginutils/getty.c b/loginutils/getty.c index 0e475e4c0..b211733ee 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -998,7 +998,9 @@ static void error(const char *fmt, ...) va_end(va_alist); #ifdef USE_SYSLOG - syslog_msg(LOG_AUTH, LOG_ERR, buf); + openlog(bb_applet_name, 0, LOG_AUTH); + syslog(LOG_ERR, "%s", buf); + closelog(); #else strncat(bp, "\r\n", 256 - strlen(buf)); buf[255] = 0; -- cgit v1.2.3