diff options
Diffstat (limited to 'loginutils')
| -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, ...) | |||
| 998 | va_end(va_alist); | 998 | va_end(va_alist); |
| 999 | 999 | ||
| 1000 | #ifdef USE_SYSLOG | 1000 | #ifdef USE_SYSLOG |
| 1001 | syslog_msg(LOG_AUTH, LOG_ERR, buf); | 1001 | openlog(bb_applet_name, 0, LOG_AUTH); |
| 1002 | syslog(LOG_ERR, "%s", buf); | ||
| 1003 | closelog(); | ||
| 1002 | #else | 1004 | #else |
| 1003 | strncat(bp, "\r\n", 256 - strlen(buf)); | 1005 | strncat(bp, "\r\n", 256 - strlen(buf)); |
| 1004 | buf[255] = 0; | 1006 | buf[255] = 0; |
