Subject: bin/906: Format of output by newsyslog contains extraneous space
To: None <gnats-admin@NetBSD.ORG>
From: Thorsten Lockert <tholo@SigmaSoft.COM>
List: netbsd-bugs
Date: 03/25/1995 23:20:03
>Number: 906
>Category: bin
>Synopsis: Format of output by newsyslog contains extraneous space
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Mar 25 23:20:02 1995
>Originator: Thorsten Lockert
>Organization:
SigmaSoft, Th. Lockert
>Release: NetBSD-current as of March 22, 1995
>Environment:
System: NetBSD gandalf.sigmasoft.com 1.0A NetBSD 1.0A (GANDALF) #1: Wed Mar 22 20:53:44 PST 1995 tholo@gandalf.sigmasoft.com:/usr/src/sys/arch/i386/compile/GANDALF i386
>Description:
newsyslog(1) outputs extra space between data and hostname on
the entries it adds to the logfiles in rolls over.
>How-To-Repeat:
Look at the entries added to the logfiles by newsyslog(1)
>Fix:
Apply the following patch
--- src/usr.bin/newsyslog/newsyslog.c.orig Sat Mar 25 23:01:24 1995
+++ src/usr.bin/newsyslog/newsyslog.c Sat Mar 25 23:01:33 1995
@@ -180,7 +180,7 @@
progname = argv[0];
timenow = time((time_t *) 0);
daytime = ctime(&timenow) + 4;
- daytime[16] = '\0';
+ daytime[15] = '\0';
/* Let's find the pid of syslogd */
syslog_pid = 0;
>Audit-Trail:
>Unformatted: