From 8440db2b28ce4953fcea73b1494eb4e36227e1ba Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sat, 21 Aug 1999 10:28:44 +0000 Subject: [PATCH] . Started with CHANGES file . Skip newline when reading in klog messages --- CHANGES | 3 +++ klogd.c | 5 ++++- syslog.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 CHANGES 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)