This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/963] syslog() does not always NL terminate messages


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]