From 674a6f7ebabffa0e05c1c12f021457973e67f2f8 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 8 Jul 1995 16:47:47 +0000 Subject: PR # bin/274 > The command: > > touch -t 199504011200 testfile > > gives the error message: > > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS] Submitted by: mpp@legarto.minn.net (Mike Pritchard) --- usr.bin/touch/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/touch') diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c index cb96645..d1de0bc 100644 --- a/usr.bin/touch/touch.c +++ b/usr.bin/touch/touch.c @@ -204,7 +204,7 @@ stime_arg1(arg, tvp) switch(strlen(arg)) { case 12: /* CCYYMMDDhhmm */ t->tm_year = ATOI2(arg); - t->tm_year *= 1000; + t->tm_year *= 100; yearset = 1; /* FALLTHOUGH */ case 10: /* YYMMDDhhmm */ -- cgit v1.1