NetBSD Problem Report #906

From gnats  Sat Mar 25 23:05:19 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id XAA04114 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 25 Mar 1995 23:05:18 -0800
Message-Id: <199503260705.XAA04508@gandalf.sigmasoft.com>
Date: Sat, 25 Mar 1995 23:05:30 -0800
From: Thorsten Lockert <tholo@SigmaSoft.COM>
Reply-To: tholo@SigmaSoft.COM
To: gnats-bugs@NetBSD.ORG
Subject: Format of output by newsyslog contains extraneous space
X-Send-Pr-Version: 3.2

>Number:         906
>Category:       bin
>Synopsis:       Format of output by newsyslog contains extraneous space
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 25 23:20:02 +0000 1995
>Closed-Date:    Sun Jan 14 21:08:11 +0000 1996
>Last-Modified:  Sun Jan 14 21:09:31 +0000 1996
>Originator:     Thorsten Lockert
>Release:        NetBSD-current as of March 22, 1995
>Organization:
SigmaSoft, Th. Lockert
>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;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Sun Jan 14 13:08:11 PST 1996 
State-Changed-Why:  
This has been fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.