This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/963] syslog() does not always NL terminate messages
- From: "gotom at debian dot or dot jp" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Jun 2005 14:29:04 -0000
- Subject: [Bug libc/963] syslog() does not always NL terminate messages
- References: <20050523154812.963.bazsi@balabit.hu>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From gotom at debian dot or dot jp 2005-06-01 14:29 -------
Look down at the LOG_PERROR line:
/* If we have a SOCK_STREAM connection, also send ASCII NUL as
a record terminator. */
if (LogType == SOCK_STREAM)
++bufsize;
Note that according to SUS, syslog() "may" add NL character
"if needed", so adding NL is not duty from the standard:
http://www.opengroup.org/onlinepubs/009695399/functions/syslog.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sources.redhat.com/bugzilla/show_bug.cgi?id=963
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.