mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
d31c50870d
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
69 lines
2 KiB
Diff
69 lines
2 KiB
Diff
--- ./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)
|