diff options
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r-- | libbb/verror_msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index ca44030b2..5c6df48d4 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c | |||
@@ -56,7 +56,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) | |||
56 | 56 | ||
57 | if (logmode & LOGMODE_STDIO) { | 57 | if (logmode & LOGMODE_STDIO) { |
58 | fflush(stdout); | 58 | fflush(stdout); |
59 | full_write(2, msg, used + msgeol_len); | 59 | full_write(STDERR_FILENO, msg, used + msgeol_len); |
60 | } | 60 | } |
61 | if (logmode & LOGMODE_SYSLOG) { | 61 | if (logmode & LOGMODE_SYSLOG) { |
62 | syslog(LOG_ERR, "%s", msg + applet_len); | 62 | syslog(LOG_ERR, "%s", msg + applet_len); |