. Started with CHANGES file

. Skip newline when reading in klog messages
This commit is contained in:
Joey Schulze 1999-08-21 10:28:44 +00:00
parent 263b17247e
commit 8440db2b28
3 changed files with 8 additions and 2 deletions

3
CHANGES Normal file
View File

@ -0,0 +1,3 @@
Version 1.4
. Skip newline when reading in klog messages

View File

@ -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 <joey@infodrom.north.de>
* 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;

View File

@ -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)