summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.10.2-syslogd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/busybox-1.10.2-syslogd.patch')
-rw-r--r--package/busybox/busybox-1.10.2-syslogd.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.10.2-syslogd.patch b/package/busybox/busybox-1.10.2-syslogd.patch
new file mode 100644
index 000000000..49e55cc8a
--- /dev/null
+++ b/package/busybox/busybox-1.10.2-syslogd.patch
@@ -0,0 +1,16 @@
+--- busybox-1.10.2/sysklogd/syslogd.c Sat Apr 19 05:50:29 2008
++++ busybox-1.10.2-syslogd/sysklogd/syslogd.c Sat May 24 23:02:56 2008
+@@ -347,10 +347,11 @@
+ sprintf(newFile, "%s.%d", G.logFilePath, i);
+ if (i == 0) break;
+ sprintf(oldFile, "%s.%d", G.logFilePath, --i);
+- xrename(oldFile, newFile);
++ /* ignore errors - file might be missing */
++ rename(oldFile, newFile);
+ }
+ /* newFile == "f.0" now */
+- xrename(G.logFilePath, newFile);
++ rename(G.logFilePath, newFile);
+ fl.l_type = F_UNLCK;
+ fcntl(G.logFD, F_SETLKW, &fl);
+ close(G.logFD);