[comp.sys.sun] Touch bug

paulb@ttidca.tti.com (Paul Blumstein) (03/29/89)

Our network has some machines on 3.5 and some on 4.0.  If you have a zero
length file existing on a 4.0 machine and are trying to touch that file
over NFS (rw permissions, of course) from a 3.5 machine, touch does not
complain but does not modify the date.  This has caused makefile problems
that rely on touch to update dates.

Paul Blumstein  
Citicorp/TTI    
Santa Monica, CA

{philabs,csun,psivax}!ttidca!paulb  or  paulb@ttidca.TTI.COM

paulb@ncc1701.tti.com (Paul Blumstein) (04/07/89)

paulb@ttidca.tti.com (Paul Blumstein) writes:
+Our network has some machines on 3.5 and some on 4.0.  If you have a zero
+length file existing on a 4.0 machine and are trying to touch that file
+over NFS (rw permissions, of course) from a 3.5 machine, touch does not
+complain but does not modify the date.  This has caused makefile problems
+that rely on touch to update dates.

I received this reply from SUN and am posting it because others may have
the same problem:

From: cs@sun.com (Carl Smith)
Organization: Sun Microsystems, Mountain View

Fixed some time ago.  If you have suppport, a fix is available.
Meanwhile, if you're just creating some empty files and updating them to
keep track of which targets need to be made, try make TOUCH='date >',
assuming of course that the people who wrote your makefiles were smart
enough to write

	${TOUCH} mumble

rather than

	touch mumble


			Carl