aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-29 12:55:21 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-29 12:55:21 +0000
commit8e1bd4a05b3ef84b886e32783d8fd40726e6c6a0 (patch)
tree97bcaa510e52243a07cd9b9f5e77c2ece2c38e76
parentbee9eb1a9d04503d58070bd1946cc2c0538fcf95 (diff)
downloadbusybox-8e1bd4a05b3ef84b886e32783d8fd40726e6c6a0.tar.gz
don't out \r to syslog
-rw-r--r--init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c
index 058a47a83..166f526e0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -225,7 +225,7 @@ static void message(int device, const char *fmt, ...)
if (device & LOG) {
/* don`t out "\r\n" */
openlog(bb_applet_name, 0, LOG_DAEMON);
- syslog(LOG_INFO, "%s", msg);
+ syslog(LOG_INFO, "%s", msg + 1);
closelog();
}