Magellan Linux

Annotation of /trunk/busybox/patches/busybox-1.10.2-syslogd.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 626 - (hide annotations) (download)
Sat May 31 10:33:24 2008 UTC (16 years ago) by niro
File size: 584 byte(s)
-added more official fixes

1 niro 626 --- busybox-1.10.2/sysklogd/syslogd.c Sat Apr 19 05:50:29 2008
2     +++ busybox-1.10.2-syslogd/sysklogd/syslogd.c Sat May 24 23:02:56 2008
3     @@ -347,10 +347,11 @@
4     sprintf(newFile, "%s.%d", G.logFilePath, i);
5     if (i == 0) break;
6     sprintf(oldFile, "%s.%d", G.logFilePath, --i);
7     - xrename(oldFile, newFile);
8     + /* ignore errors - file might be missing */
9     + rename(oldFile, newFile);
10     }
11     /* newFile == "f.0" now */
12     - xrename(G.logFilePath, newFile);
13     + rename(G.logFilePath, newFile);
14     fl.l_type = F_UNLCK;
15     fcntl(G.logFD, F_SETLKW, &fl);
16     close(G.logFD);