From nobody@FreeBSD.org  Tue Feb  6 16:52:00 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id EC91E16A401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Feb 2007 16:52:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id DDF2C13C4AA
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Feb 2007 16:52:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l16Gq0OF097336
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Feb 2007 16:52:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l16Gq0TU097335;
	Tue, 6 Feb 2007 16:52:00 GMT
	(envelope-from nobody)
Message-Id: <200702061652.l16Gq0TU097335@www.freebsd.org>
Date: Tue, 6 Feb 2007 16:52:00 GMT
From: Derek Tattersall<dlt@mebtel.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Zdump prints bad information and hangs
X-Send-Pr-Version: www-3.0

>Number:         108841
>Category:       amd64
>Synopsis:       Zdump prints bad information and hangs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 06 17:00:35 GMT 2007
>Closed-Date:    Wed Feb 28 08:09:19 GMT 2007
>Last-Modified:  Wed Feb 28 08:09:19 GMT 2007
>Originator:     Derek Tattersall
>Release:        7.0-current
>Organization:
>Environment:
FreeBSD nebbish.arm.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri Feb  2 13:23:47 EST 2007     root@nebbish.arm.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
zdump -v EST5EDT prints 4 records as follows:
[dlt@nebbish 536 zdump]$ zdump -v EST5EDT
EST5EDT  Sun Jan 26 08:29:52 -219 UTC = Sun Jan 26 03:29:52 -219 EST isdst=0 gmtoff=-18000
EST5EDT  Mon Jan 27 08:29:52 -219 UTC = Mon Jan 27 03:29:52 -219 EST isdst=0 gmtoff=-18000
EST5EDT  Fri Jan  1 04:59:59 -219 UTC = Thu Dec 30 23:59:59 -219 EST isdst=0 gmtoff=-18000
EST5EDT  Fri Jan  1 05:00:00 -219 UTC = Fri Jan  1 00:00:00 -219 EST isdst=0 gmtoff=-18000

Then hangs.  Can be killed by ctrl-c.  I found that the localtime() call in show() 
returns incorrect information in at least the year field.
>How-To-Repeat:
execute from a command prompt "zdump -v EST5EDT"
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vd 
State-Changed-When: Wed Feb 28 08:08:04 UTC 2007 
State-Changed-Why:  
Superseded by amd64/109584 

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