summaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/410-syslogd_circular_fix.patch
blob: d13d36addcb9ab62d27b4976d4a2e46c400c3beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);