summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.13.1-init.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-12-10 13:46:19 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-12-10 13:46:19 +0000
commitcdd72cd08ff91be59ba6fecb1261cd32d29c7df9 (patch)
treee49647c4d0ac38c5a2b9754a853f87d8fc63a053 /package/busybox/busybox-1.13.1-init.patch
parentcbe9f1b8d28e24097a87adacbfed94d0609650ec (diff)
downloadbuildroot-novena-cdd72cd08ff91be59ba6fecb1261cd32d29c7df9.tar.gz
buildroot-novena-cdd72cd08ff91be59ba6fecb1261cd32d29c7df9.zip
busybox: additional 1.13.1 fixes
Diffstat (limited to 'package/busybox/busybox-1.13.1-init.patch')
-rw-r--r--package/busybox/busybox-1.13.1-init.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.13.1-init.patch b/package/busybox/busybox-1.13.1-init.patch
new file mode 100644
index 000000000..23187720f
--- /dev/null
+++ b/package/busybox/busybox-1.13.1-init.patch
@@ -0,0 +1,28 @@
+--- busybox-1.13.1/init/init.c Sat Nov 29 07:48:56 2008
++++ busybox-1.13.1-init/init/init.c Tue Dec 9 22:17:43 2008
+@@ -118,18 +118,18 @@
+
+ msg[0] = '\r';
+ va_start(arguments, fmt);
+- l = vsnprintf(msg + 1, sizeof(msg) - 2, fmt, arguments);
+- if (l > sizeof(msg) - 2)
+- l = sizeof(msg) - 2;
++ l = 1 + vsnprintf(msg + 1, sizeof(msg) - 2, fmt, arguments);
++ if (l > sizeof(msg) - 1)
++ l = sizeof(msg) - 1;
+ msg[l] = '\0';
+ va_end(arguments);
+
+ if (ENABLE_FEATURE_INIT_SYSLOG) {
+- /* Log the message to syslogd */
+ if (where & L_LOG) {
+- /* don't print out "\r" */
+- openlog(applet_name, 0, LOG_DAEMON);
+- syslog(LOG_INFO, "init: %s", msg + 1);
++ /* Log the message to syslogd */
++ openlog("init", 0, LOG_DAEMON);
++ /* don't print "\r" */
++ syslog(LOG_INFO, "%s", msg + 1);
+ closelog();
+ }
+ msg[l++] = '\n';