From jonny@jonny.eng.br  Mon Oct 15 09:40:52 2001
Return-Path: <jonny@jonny.eng.br>
Received: from roma.coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65])
	by hub.freebsd.org (Postfix) with ESMTP id 2F2AF37B40F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Oct 2001 09:40:47 -0700 (PDT)
Received: (from jonny@localhost)
	by roma.coe.ufrj.br (8.11.6/8.11.3) id f9FGeak72248;
	Mon, 15 Oct 2001 14:40:36 -0200 (BRST)
	(envelope-from jonny)
Message-Id: <200110151640.f9FGeak72248@roma.coe.ufrj.br>
Date: Mon, 15 Oct 2001 14:40:36 -0200 (BRST)
From: Joao Carlos Mendes Luis <jonny@jonny.eng.br>
Reply-To: Joao Carlos Mendes Luis <jonny@jonny.eng.br>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: newsyslog dealing with daylight savings time
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31291
>Category:       bin
>Synopsis:       newsyslog dealing with daylight savings time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 09:50:00 PDT 2001
>Closed-Date:    Mon Oct 15 15:41:52 PDT 2001
>Last-Modified:  Mon Oct 15 15:42:55 PDT 2001
>Originator:     Joao Carlos Mendes Luis
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
COPPE/UFRJ
>Environment:
System: FreeBSD roma.coe.ufrj.br 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Sep 20 20:35:05 BRT 2001 jonny@roma.coe.ufrj.br:/usr/cvsup/RELENG_4/src/sys/compile/ROMA i386


	FreeBSD 4.4-stable

>Description:

Default newsyslog.conf includes the following line:

/var/log/maillog                        644  7     *    @T00  Z

When the local region enters daylight savings time, the first day
does not have the first hour, so such hour is invalid.

I suppose a similar problem will happen at daylight savings end.

>How-To-Repeat:

Simulate a first day of a daylight savings station, and run newsyslog.

>Fix:

Options:

- Fix newsyslog to detect daylight savings start/end.

- Fix mktime(3) to return a specific error for daylight savings
  time inexistence.

- As a simple and dirty workaround, just change newsyslog.conf.  ;-)

Sorry no patches.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Oct 15 15:41:52 PDT 2001 
State-Changed-Why:  

Your suggestion of making newsyslog more specific in regards to times 
to rotate crucial logs is the correct one. Please search the mail 
archives for copious discussion about why this problem is also impossible 
to solve in a manner that pleases everyone for cron. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31291 
>Unformatted:
