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)
This commit is contained in:
Joerg Wunsch 1995-07-08 16:47:47 +00:00
parent c3081fb7f9
commit d38ca307b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9446

View File

@ -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 */