From owner-freebsd-bugs Sat Jun 14 07:20:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA24369 for bugs-outgoing; Sat, 14 Jun 1997 07:20:03 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA24363; Sat, 14 Jun 1997 07:20:02 -0700 (PDT) Resent-Date: Sat, 14 Jun 1997 07:20:02 -0700 (PDT) Resent-Message-Id: <199706141420.HAA24363@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, sanewo@ba2.so-net.or.jp Received: from sanewo.ba2.so-net.or.jp (pppba22.pppp.ap.so-net.or.jp [210.132.186.34]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA24198 for ; Sat, 14 Jun 1997 07:15:43 -0700 (PDT) Received: (from sanewo@localhost) by sanewo.ba2.so-net.or.jp (8.8.5/8.7.3) id XAA01691; Sat, 14 Jun 1997 23:10:43 +0900 (JST) Message-Id: <199706141410.XAA01691@sanewo.ba2.so-net.or.jp> Date: Sat, 14 Jun 1997 23:10:43 +0900 (JST) From: sanewo@ba2.so-net.or.jp Reply-To: sanewo@ba2.so-net.or.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/3866: rcs2log fails with eastern timezone Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3866 >Category: bin >Synopsis: rcs2log fails with eastern timezones >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 14 07:20:01 PDT 1997 >Last-Modified: >Originator: Takanori Saneto >Organization: an individual >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD aurora 3.0-CURRENT FreeBSD 3.0-CURRENT #54: Fri Jun 13 03:06:54 JST 1997 sanewo@aurora:/usr/src/sys/compile/AURORA i386 >Description: If timezone of the system is east to the GMT, rcs2log fails. If rcs2log can't find ChangeLog file, instead of using timestamp of ChangeLog, it uses "1970-1-1", which is passed to "cvs log" command. Because there is no timezone in the string, it assumes local timezone. For GMT, time_t for 1970-1-1 0:0:0 is 0. For timezones east to GMT, the value converted to time_t becomes nagative, which causes error. >How-To-Repeat: (in the CVS controlled directory where no ChageLog file) (and make sure that you are live in eastern country) % /usr/share/examples/cvs/rcs2log cvs [log aborted]: Can't parse date/time: 1970-1-1 >Fix: --- rcs2log.sh.org Sat Jun 14 22:48:29 1997 +++ rcs2log.sh Sat Jun 14 22:48:52 1997 @@ -121,7 +121,7 @@ # log the revisions checked in since the first ChangeLog entry. case $rlog_options in '') - date=1970-01-01 + date='1970-01-01 GMT' if test -s ChangeLog then # Add 1 to seconds to avoid duplicating most recent log. >Audit-Trail: >Unformatted: