rotatelogs.diff
text/plain
Filename: rotatelogs.diff
Type: text/plain
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| src/support/rotatelogs.c | 3 | 0 |
--- src/support/rotatelogs.c~ Mon Aug 3 11:15:33 1998
+++ src/support/rotatelogs.c Sun Mar 26 22:42:40 2000
@@ -14,6 +14,7 @@
#include <time.h>
#include <errno.h>
#include <fcntl.h>
+#include <unistd.h>
int main (int argc, char **argv)
{
@@ -73,6 +74,8 @@
perror(buf2);
exit(2);
}
+ unlink(szLogRoot);
+ link(buf2, szLogRoot);
}
if (write(nLogFD, buf, nRead) != nRead) {
perror(buf2);