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:
parent
c3081fb7f9
commit
d38ca307b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9446
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user