summaryrefslogtreecommitdiff
path: root/source/a/sysklogd/sysklogd.allow.repeated.messages.diff
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2020-06-26 19:18:25 +0000
committerEric Hameleers <alien@slackware.com>2020-06-27 08:59:53 +0200
commit93abc85df8a72067aecc72c4773d00b040d6a1e2 (patch)
treec61f7ece039acb850385e181135f89817e8b340d /source/a/sysklogd/sysklogd.allow.repeated.messages.diff
parent6cf862d3dc4bb739f05176b134e0da7db6cb4616 (diff)
downloadcurrent-93abc85df8a72067aecc72c4773d00b040d6a1e2.tar.gz
Fri Jun 26 19:18:25 UTC 202020200626191825
a/sysklogd-2.1.2-x86_64-1.txz: Upgraded. Make sure to move the .new init script and config into place for this. ap/undervolt-20200612_07d0c70-x86_64-1.txz: Added. l/popt-1.18-x86_64-1.txz: Upgraded. x/libglvnd-1.3.2-x86_64-1.txz: Upgraded. x/libva-2.8.0-x86_64-1.txz: Upgraded. x/libva-utils-2.8.0-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/sysklogd/sysklogd.allow.repeated.messages.diff')
-rw-r--r--source/a/sysklogd/sysklogd.allow.repeated.messages.diff69
1 files changed, 0 insertions, 69 deletions
diff --git a/source/a/sysklogd/sysklogd.allow.repeated.messages.diff b/source/a/sysklogd/sysklogd.allow.repeated.messages.diff
deleted file mode 100644
index 41e6bf15..00000000
--- a/source/a/sysklogd/sysklogd.allow.repeated.messages.diff
+++ /dev/null
@@ -1,69 +0,0 @@
---- ./syslogd.c.orig 2014-10-04 14:47:18.000000000 -0500
-+++ ./syslogd.c 2016-06-29 01:46:39.355541929 -0500
-@@ -776,6 +776,7 @@
- };
-
- int Debug; /* debug flag */
-+int Compress = 1; /* compress repeated messages flag */
- char LocalHostName[MAXHOSTNAMELEN+1]; /* our hostname */
- char *LocalDomain; /* our local domain name */
- char *emptystring = "";
-@@ -888,7 +889,7 @@
- funix[i] = -1;
- }
-
-- while ((ch = getopt(argc, argv, "a:dhf:l:m:np:rs:v")) != EOF)
-+ while ((ch = getopt(argc, argv, "a:cdhf:l:m:np:rs:v")) != EOF)
- switch((char)ch) {
- case 'a':
- if (nfunix < MAXFUNIX)
-@@ -896,6 +897,9 @@
- else
- fprintf(stderr, "Out of descriptors, ignoring %s\n", optarg);
- break;
-+ case 'c': /* don't compress repeated messages */
-+ Compress = 0;
-+ break;
- case 'd': /* debug */
- Debug = 1;
- break;
-@@ -1240,7 +1244,7 @@
-
- int usage()
- {
-- fprintf(stderr, "usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \
-+ fprintf(stderr, "usage: syslogd [-cdrvh] [-l hostlist] [-m markinterval] [-n] [-p path]\n" \
- " [-s domainlist] [-f conffile]\n");
- exit(1);
- }
-@@ -1703,7 +1707,7 @@
- /*
- * suppress duplicate lines to this file
- */
-- if ((flags & MARK) == 0 && msglen == f->f_prevlen &&
-+ if (Compress && (flags & MARK) == 0 && msglen == f->f_prevlen &&
- !strcmp(msg, f->f_prevline) &&
- !strcmp(from, f->f_prevhost)) {
- (void) strncpy(f->f_lasttime, timestamp, 15);
---- ./sysklogd.8.orig 2014-10-04 14:47:18.000000000 -0500
-+++ ./sysklogd.8 2016-06-29 01:59:45.311525189 -0500
-@@ -10,6 +10,7 @@
- .RB [ " \-a "
- .I socket
- ]
-+.RB [ " \-c " ]
- .RB [ " \-d " ]
- .RB [ " \-f "
- .I config file
-@@ -83,6 +84,11 @@
- described by the people from OpenBSD at
- <http://www.guides.sk/psionic/dns/>.
- .TP
-+.B "\-c"
-+Disable the repeating line compression that normally suppresses the
-+repeated lines and logs a message such as 'last message repeated 124
-+times'. With this option, all repeated lines will be logged.
-+.TP
- .B "\-d"
- Turns on debug mode. Using this the daemon will not proceed a
- .BR fork (2)