Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 1997 23:10:43 +0900 (JST)
From:      sanewo@ba2.so-net.or.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/3866: rcs2log fails with eastern timezone
Message-ID:  <199706141410.XAA01691@sanewo.ba2.so-net.or.jp>
Resent-Message-ID: <199706141420.HAA24363@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706141410.XAA01691>