From jari@lithium.infid.net  Mon Apr  1 19:53:02 2002
Return-Path: <jari@lithium.infid.net>
Received: from lithium.infid.net (CPE0050da80dca0.cpe.net.cable.rogers.com [24.114.248.144])
	by hub.freebsd.org (Postfix) with ESMTP id 77BD837B41B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  1 Apr 2002 19:53:01 -0800 (PST)
Received: (from jari@localhost)
	by lithium.infid.net (8.11.6/8.11.6) id g353vl457437;
	Thu, 4 Apr 2002 22:57:47 -0500 (EST)
	(envelope-from jari)
Message-Id: <200204050357.g353vl457437@lithium.infid.net>
Date: Thu, 4 Apr 2002 22:57:47 -0500 (EST)
From: Jari Takkala <jari@infid.net>
Reply-To: Jari Takkala <jari@infid.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: newsyslog: malformed date error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36641
>Category:       bin
>Synopsis:       newsyslog: malformed date error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cjc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 01 20:00:09 PST 2002
>Closed-Date:    Thu Apr 04 23:56:17 PST 2002
>Last-Modified:  Thu Apr 04 23:56:17 PST 2002
>Originator:     Jari Takkala
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD lithium.infid.net 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Tue Sep 25 11:42:25 EDT 2001 root@lithium.infid.net:/usr/obj/usr/src/sys/LITHIUM i386

>Description:
	newsyslog mails root the following error since April 1 2002:

	newsyslog: malformed at:
	/var/log/auth                           640  10    300  $W0D2 Z

>How-To-Repeat:
	Enter a date of '$W0D2' under the "when" field in /etc/newsyslog.conf (after date has rolled over to April 1 2002).

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Tue Apr 2 03:29:17 PST 2002 
State-Changed-Why:  
Not a bug. newsyslog(8) calculates when the next roll over should 
be. It will find it to be Sun Apr  7 02:00:00 PDT 2002. However, that 
is a nonexistent time. That's the conversion to Daylight time. Clocks 
roll from Sun Apr  7 01:59:59 PDT 2002 to Sun Apr  7 03:00:00 PDT 
2002. 

newsyslog(8) is properly (although vaguely) telling you that that time 
is not a good choice and will not work correctly. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36641 
State-Changed-From-To: closed->patched 
State-Changed-By: cjc 
State-Changed-When: Tue Apr 2 04:05:35 PST 2002 
State-Changed-Why:  
Actually, I think the error messaging should be cleared up. Bad 
newsyslog.cinf syntax should be flagged differently than mktime(3) 
failure. Corrected in -CURRENT. Will MFC to -STABLE in a few days. 


Responsible-Changed-From-To: freebsd-bugs->cjc 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Tue Apr 2 04:05:35 PST 2002 
Responsible-Changed-Why:  
I will handle MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36641 
State-Changed-From-To: patched->closed 
State-Changed-By: cjc 
State-Changed-When: Thu Apr 4 23:55:56 PST 2002 
State-Changed-Why:  
MFC'ed to -STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36641 
>Unformatted:
