DragonFly bugs List (threaded) for 2004-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: touch -t broken?
On Sat, Sep 04, 2004 at 11:45:35AM -0700, walt wrote:
> This line from a makefile in the ports collection
> ${TOUCH} -t 200401230000 ${WRKSRC}/Makefile.am.in
> fails with the familiar message:
> touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
>
> touch -t seems to fail no matter what date/time I give it.
>
> Any thoughts?
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]");
}
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]