From owner-cvs-src@FreeBSD.ORG Mon May 10 10:12:53 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66B8816A4CE; Mon, 10 May 2004 10:12:53 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300B443D48; Mon, 10 May 2004 10:12:53 -0700 (PDT) (envelope-from dds@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i4AHCrGe045388; Mon, 10 May 2004 10:12:53 -0700 (PDT) (envelope-from dds@repoman.freebsd.org) Received: (from dds@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i4AHCqKi045387; Mon, 10 May 2004 10:12:52 -0700 (PDT) (envelope-from dds) Message-Id: <200405101712.i4AHCqKi045387@repoman.freebsd.org> From: Diomidis Spinellis Date: Mon, 10 May 2004 10:12:52 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen syslog.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 17:12:53 -0000 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