From owner-freebsd-bugs Mon Oct 15 9:50:15 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DB7A537B407 for ; Mon, 15 Oct 2001 09:50:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9FGo0k03848; Mon, 15 Oct 2001 09:50:00 -0700 (PDT) (envelope-from gnats) Received: from roma.coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by hub.freebsd.org (Postfix) with ESMTP id 2F2AF37B40F for ; 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 Reply-To: Joao Carlos Mendes Luis To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/31291: newsyslog dealing with daylight savings time Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31291 >Category: bin >Synopsis: newsyslog dealing with daylight savings time >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 15 09:50:00 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message