summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-19 12:57:23 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-19 12:57:23 +0000
commitc0c7dc2586275010304d2295140e4027f5eb9afa (patch)
tree25c10f2f92f1cf724297a72d49ab201bb0c0e14b
parentcae6d4f9edd86b03a3e6a763fe9afbb2a1aaefb7 (diff)
fix syslogd output to /dev/console (patch from #1170)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6131 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/busybox/patches/410-syslogd_circular_fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/busybox/patches/410-syslogd_circular_fix.patch b/package/busybox/patches/410-syslogd_circular_fix.patch
new file mode 100644
index 0000000000..d13d36addc
--- /dev/null
+++ b/package/busybox/patches/410-syslogd_circular_fix.patch
@@ -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);