summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.10.2-syslogd.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-05-31 07:28:04 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-05-31 07:28:04 +0000
commitabf69d676ffd2dacee5fc141a023c669ba87e08a (patch)
tree0e4097a492a84beb5ea4b571ccbce12f5a2cb48d /package/busybox/busybox-1.10.2-syslogd.patch
parent00141805cb4594176704b9b6a57e3faf31d6f546 (diff)
busybox: 1.10.2 patches
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);