aboutsummaryrefslogtreecommitdiff
path: root/sysutils/logrotate
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-04 04:03:18 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-04 04:03:18 +0000
commit869c3b0d5fba842c9106b1f63156eb00ce68ed39 (patch)
treeb6467216af5a0fff53c9ba357e748a1287da948d /sysutils/logrotate
parent6bb18aedcfb9a8636d2a26c52c47439a8c38b206 (diff)
Notes
Diffstat (limited to 'sysutils/logrotate')
-rw-r--r--sysutils/logrotate/files/patch-config.c13
-rw-r--r--sysutils/logrotate/files/patch-logrotate.c13
-rw-r--r--sysutils/logrotate/files/patch-logrotate.h11
3 files changed, 33 insertions, 4 deletions
diff --git a/sysutils/logrotate/files/patch-config.c b/sysutils/logrotate/files/patch-config.c
index ce1cfa77d001..03259d90c3c0 100644
--- a/sysutils/logrotate/files/patch-config.c
+++ b/sysutils/logrotate/files/patch-config.c
@@ -1,5 +1,5 @@
---- config.c.orig 2017-10-12 15:19:41.000000000 +0000
-+++ config.c 2017-10-14 21:59:41.716559000 +0000
+--- config.c.orig 2017-10-12 15:19:41 UTC
++++ config.c
@@ -1,6 +1,6 @@
#include "queue.h"
/* Alloca is defined in stdlib.h in NetBSD */
@@ -8,3 +8,12 @@
#include <alloca.h>
#endif
#include <limits.h>
+@@ -27,6 +27,8 @@
+
+ #include "log.h"
+ #include "logrotate.h"
++
++extern struct logInfoHead logs;
+
+ #if !defined(GLOB_ABORTED) && defined(GLOB_ABEND)
+ #define GLOB_ABORTED GLOB_ABEND
diff --git a/sysutils/logrotate/files/patch-logrotate.c b/sysutils/logrotate/files/patch-logrotate.c
index 854db23df096..031d9fde7e38 100644
--- a/sysutils/logrotate/files/patch-logrotate.c
+++ b/sysutils/logrotate/files/patch-logrotate.c
@@ -1,5 +1,5 @@
---- logrotate.c.orig 2017-10-12 15:19:41.000000000 +0000
-+++ logrotate.c 2017-10-14 22:00:57.613844000 +0000
+--- logrotate.c.orig 2017-10-12 15:19:41 UTC
++++ logrotate.c
@@ -1,6 +1,6 @@
#include "queue.h"
/* alloca() is defined in stdlib.h in NetBSD */
@@ -8,3 +8,12 @@
#include <alloca.h>
#endif
#include <limits.h>
+@@ -29,6 +29,8 @@
+
+ #include "log.h"
+ #include "logrotate.h"
++
++struct logInfoHead logs;
+
+ static void *prev_context;
+ #ifdef WITH_SELINUX
diff --git a/sysutils/logrotate/files/patch-logrotate.h b/sysutils/logrotate/files/patch-logrotate.h
new file mode 100644
index 000000000000..ec8437eba696
--- /dev/null
+++ b/sysutils/logrotate/files/patch-logrotate.h
@@ -0,0 +1,11 @@
+--- logrotate.h.orig 2017-10-12 15:19:41 UTC
++++ logrotate.h
+@@ -80,7 +80,7 @@
+ TAILQ_ENTRY(logInfo) list;
+ };
+
+-TAILQ_HEAD(logInfoHead, logInfo) logs;
++TAILQ_HEAD(logInfoHead, logInfo);
+
+ extern int numLogs;
+ extern int debug;