cvs commit: src/lib/libc/gen syslog.c

Diomidis Spinellis dds at FreeBSD.org
Mon May 10 10:12:53 PDT 2004


dds         2004/05/10 10:12:52 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/gen         syslog.c 
  Log:
  Remove a trailing newline, to behave as documented in syslog(3):
  "A trailing newline is added if none is present."
  
  The code in syslogd, stderr, and console output always adds a newline
  at the EOL.  However, the existing code never actually removed a
  trailing newline, and apparently relied on syslogd to convert it
  into a space character.  Thus, the existing newline was converted
  to a trailing space at the EOL by syslogd, while stderr, and console
  output resulted in an empty line.
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.30      +4 -0      src/lib/libc/gen/syslog.c


More information about the cvs-src mailing list