Re: touch -t broken?

看板DFBSD_bugs作者時間21年前 (2004/09/05 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
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]"); }
文章代碼(AID): #11Ejr000 (DFBSD_bugs)
文章代碼(AID): #11Ejr000 (DFBSD_bugs)