diff options
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r-- | loginutils/getty.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |