DragonFly bugs List (threaded) for 2004-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: touch -t broken?
On Sun, 5 Sep 2004, YONETANI Tomokazu wrote:
On Sat, Sep 04, 2004 at 11:45:35AM -0700, walt wrote:
touch -t seems to fail no matter what date/time I give it.
Please try this:
Index: usr.bin/touch/touch.c
===================================================================
RCS file: /home/source/dragonfly/cvs/src/usr.bin/touch/touch.c,v
retrieving revision 1.4
diff -u -r1.4 touch.c
--- usr.bin/touch/touch.c 15 Aug 2004 15:06:58 -0000 1.4
+++ usr.bin/touch/touch.c 4 Sep 2004 22:47:34 -0000
@@ -233,7 +233,7 @@
goto failed;
tvp[0].tv_usec = tvp[1].tv_usec = 0;
-
+ return;
failed:
errx(1, "out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]");
}
Yes, thank you, that fixed it!
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]