Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2004 10:12:52 -0700 (PDT)
From:      Diomidis Spinellis <dds@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen syslog.c
Message-ID:  <200405101712.i4AHCqKi045387@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405101712.i4AHCqKi045387>