diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..ea0347f --- /dev/null +++ b/CHANGES @@ -0,0 +1,3 @@ +Version 1.4 + + . Skip newline when reading in klog messages diff --git a/klogd.c b/klogd.c index 617a8dd..7678cef 100644 --- a/klogd.c +++ b/klogd.c @@ -213,6 +213,9 @@ * Shortened LOG_LINE_LENGTH in order to get long lines splitted * up earlier and syslogd has a better chance concatenating them * together again. + * + * Sat Aug 21 12:27:02 CEST 1999: Martin Schulze + * Skip newline when reading in messages. */ @@ -695,7 +698,7 @@ static void LogLine(char *ptr, int len) if( *ptr == '\n' ) /* newline */ { - *line++ = *ptr++; /* copy it in */ + ptr++; /* skip newline */ space -= 1; len -= 1; diff --git a/syslog.c b/syslog.c index e5ed4fb..03eb4c7 100644 --- a/syslog.c +++ b/syslog.c @@ -103,7 +103,7 @@ vsyslog(pri, fmt, ap) if (!LOG_MASK(LOG_PRI(pri)) || (pri &~ (LOG_PRIMASK|LOG_FACMASK))) return; if (LogFile < 0 || !connected) - openlog(LogTag, LogStat | LOG_NDELAY, 0); + openlog(LogTag, LogStat | LOG_NDELAY, LogFacility); /* set default facility if none specified */ if ((pri & LOG_FACMASK) == 0)