diff options
author | joerg <joerg@FreeBSD.org> | 1995-07-08 16:47:47 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-07-08 16:47:47 +0000 |
commit | 674a6f7ebabffa0e05c1c12f021457973e67f2f8 (patch) | |
tree | d5af1db90b4ed8aee521635ec51c470dfdff9881 /usr.bin/touch | |
parent | c4a6c7b3331120137b8a5c43f189ac9119e8b67e (diff) | |
download | FreeBSD-src-674a6f7ebabffa0e05c1c12f021457973e67f2f8.zip FreeBSD-src-674a6f7ebabffa0e05c1c12f021457973e67f2f8.tar.gz |
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)
Diffstat (limited to 'usr.bin/touch')
-rw-r--r-- | usr.bin/touch/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |