From owner-freebsd-bugs@FreeBSD.ORG Sat May 17 00:50:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D307485D for ; Sat, 17 May 2014 00:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96D2F2A4B for ; Sat, 17 May 2014 00:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s4H0o0Eg067363 for ; Sat, 17 May 2014 00:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s4H0o0UA067362; Sat, 17 May 2014 00:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 17 May 2014 00:50:00 GMT Resent-Message-Id: <201405170050.s4H0o0UA067362@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kurt Lidl Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63D7D7EA for ; Sat, 17 May 2014 00:44:10 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 512F22A30 for ; Sat, 17 May 2014 00:44:10 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4H0i9MZ026669 for ; Sat, 17 May 2014 00:44:09 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4H0i9DC026668; Sat, 17 May 2014 00:44:09 GMT (envelope-from nobody) Message-Id: <201405170044.s4H0i9DC026668@cgiserv.freebsd.org> Date: Sat, 17 May 2014 00:44:09 GMT From: Kurt Lidl To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/189878: newsyslog confused by some timezones (apparently) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 00:50:00 -0000 >Number: 189878 >Category: misc >Synopsis: newsyslog confused by some timezones (apparently) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 17 00:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Kurt Lidl >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD hydra.pix.net 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The time parsing routines in use by the newsyslog program are apparently not terribly robust. On many timezones, they fail to parse the "when" field of the newsyslog.conf if it contains a valid with a leading asterisk. e.g. "@T00" - both given as an example in the manpage, as well as in the distributed /etc/newsyslog.conf file. The behavior is reproducable on 9.1-RELEASE, stable/9, stable/10 and "head" as of today (May 16, 2014). >How-To-Repeat: TZ=UTC newsyslog -s -C -n -r Notice that output is generated. TZ=EST5DT newsyslog -s -C -n -r Notice that no output is generated. Under a system running stable/9.2-ish, I get output like this in the failing case: # TZ=EST5EDT newsyslog -s -C -n -r newsyslog: malformed 'at' value: /var/log/maillog 640 7 * @T00 C (it dies at whatever the first line with an "@...." in the when field.) >Fix: >Release-Note: >Audit-Trail: >Unformatted: