fix syslogd output to /dev/console (patch from #1170)
authorFelix Fietkau <nbd@openwrt.org>
Fri, 19 Jan 2007 12:57:23 +0000 (12:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 19 Jan 2007 12:57:23 +0000 (12:57 +0000)
SVN-Revision: 6131

package/busybox/patches/410-syslogd_circular_fix.patch [new file with mode: 0644]

diff --git a/package/busybox/patches/410-syslogd_circular_fix.patch b/package/busybox/patches/410-syslogd_circular_fix.patch
new file mode 100644 (file)
index 0000000..d13d36a
--- /dev/null
@@ -0,0 +1,14 @@
+diff -Nru busybox-1.3.1.orig/sysklogd/syslogd.c busybox-1.3.1/sysklogd/syslogd.c
+--- busybox-1.3.1.orig/sysklogd/syslogd.c      2007-01-02 21:28:26.000000000 +0700
++++ busybox-1.3.1/sysklogd/syslogd.c   2007-01-02 21:29:10.000000000 +0700
+@@ -304,8 +304,8 @@
+               vsnprintf(b, sizeof(b) - 1, fmt, arguments);
+               va_end(arguments);
+               circ_message(b);
+-
+-      } else
++              return;
++      }
+ #endif
+       fd = device_open(logFilePath, O_WRONLY | O_CREAT
+                                       | O_NOCTTY | O_APPEND | O_NONBLOCK);