Subject: kern/3186: touch/utimes doe not reset modification time
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bruce@zuhause.mn.org>
List: netbsd-bugs
Date: 02/03/1997 22:52:22
>Number:         3186
>Category:       kern
>Synopsis:       touch does not reset modification time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb  3 21:20:02 1997
>Last-Modified:
>Originator:     Bruce Albrecht
>Organization:
	
>Release:        NetBSD-current from 1/30/97
>Environment:
	
System: NetBSD zuhause 1.2B NetBSD 1.2B (ZuHause) #0: Sun Feb 2 19:31:28 CST 1997 root@zuhause:/NetBSD-current/usr/src/sys/arch/amiga/compile/ZuHause amiga


>Description:
	
touch (and presumably utimes) does not reset the modification date.  This is a
real pain when trying to rebuild the system on a 68030, and your makefiles somehow
reset the modification dates of all the header files.

>How-To-Repeat:
root:23$ touch xyzzy
root:24$ ls -l xyzzy; ls -lu xyzzy; ls -lc xyzzy; 
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
root:25$ touch -m 01020304 xyzzy
root:26$ ls -l xyzzy; ls -lu xyzzy; ls -lc xyzzy; 
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
-rw-r--r--  1 bruce  user  0 Feb  3 22:34 xyzzy
root:27$ touch -a 01020304 xyzzy                  
root:28$ ls -l xyzzy; ls -lu xyzzy; ls -lc xyzzy; 
-rw-r--r--  1 bruce  user  0 Feb  3 22:35 xyzzy
-rw-r--r--  1 bruce  user  0 Jan  2 03:04 xyzzy
-rw-r--r--  1 bruce  user  0 Feb  3 22:35 xyzzy

>Fix:
	
>Audit-Trail:
>Unformatted: