From george@www.fapesp.br  Tue Oct 22 12:34:15 1996
Received: from www.fapesp.br (www.fapesp.br [143.108.1.108])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA25275
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Oct 1996 12:34:11 -0700 (PDT)
Received: (from george@localhost) by www.fapesp.br (8.6.12/8.6.12) id RAA20708; Tue, 22 Oct 1996 17:34:13 -0200
Message-Id: <199610221934.RAA20708@www.fapesp.br>
Date: Tue, 22 Oct 1996 17:34:13 -0200
From: george@grande.fapesp.br
Reply-To: george@grande.fapesp.br
To: FreeBSD-gnats-submit@freebsd.org
Subject: Problems with touch command 
X-Send-Pr-Version: 3.2

>Number:         1865
>Category:       bin
>Synopsis:       Problem with touch command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 22 12:40:02 PDT 1996
>Closed-Date:    Tue Feb 18 13:40:26 PST 1997
>Last-Modified:  Tue Feb 18 13:41:25 PST 1997
>Originator:     
>Release:        
>Organization:
>Environment:

	

>Description:
The commando touch for date 10/20/1996 hour 00:00 returns error.

touch -t 9610200000 arq
returns
touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]

if you try for diferent minuts, it doesn't work , but to diferent hours it works.




>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: george@grande.fapesp.br
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1865: Problems with touch command
Date: Tue, 22 Oct 1996 23:01:48 +0200 (MET DST)

 As george@grande.fapesp.br wrote:
 
 > touch -t 9610200000 arq
 > returns
 > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
 
 j@uriah 373% touch -t 9610200000 arq
 j@uriah 374% ls -l arq
 -rw-r--r--  1 j  bin  0 Oct 20 00:00 arq
 
 > Release:        FreeBSD 2.1-STABLE i386
 
 Hmm, mine is a 2.2-current.  However, you must be using a fairly old
 2.1-stable system:
 
 
 RCS file: /home/cvs/src/usr.bin/touch/touch.c,v
 Working file: /usr/src/usr.bin/touch/touch.c
 head: 1.4
 branch:
 locks: strict
 access list:
 symbolic names:
         RELENG_2_1_5_RELEASE: 1.2.4.1
         RELENG_2_1_0_RELEASE: 1.2.4.1
                               (1)
 [...]
 revision 1.3
 date: 1995/07/08 16:47:47;  author: joerg;  state: Exp;  lines: +1 -1
 PR # bin/274
 > The command:
 >
 > touch -t 199504011200 testfile
 >
 > gives the error message:
 >
 > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
 
 Submitted by:   mpp@legarto.minn.net (Mike Pritchard)
 ----------------------------
 [...]
 revision 1.2.4.1
 date: 1995/08/26 10:16:22;  author: davidg;  state: Exp;  lines: +1 -1
 Brought in change from rev 1.3: fix off by ten error in year calculation.
 
 (1) means that the fix is already present in 2.1R, as well as in
 2.1.5R.
 
 Please upgrade your system then.
 
 Btw2, i think you must have been using
 
 	touch -t 199610200000 arq
 
 since the fix was for a time specification with the century.
 
 
 Can i close this?
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: jmg 
State-Changed-When: Tue Feb 18 13:40:26 PST 1997 
State-Changed-Why:  
fixed long ago in rev 1.3 of src/usr.bin/touch/touch.c 
>Unformatted:
Originator:     George J Tihameri
Organization:   FAPESP - Fundacao de Amparo a Pesquisa de Sao Paulo 
Release:        FreeBSD 2.1-STABLE i386
