summaryrefslogtreecommitdiff
path: root/usr.bin/touch/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/touch/touch.c')
-rw-r--r--usr.bin/touch/touch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index b5f19dcf95fd..712d72ecbe6f 100644
--- a/usr.bin/touch/touch.c
+++ b/usr.bin/touch/touch.c
@@ -260,11 +260,8 @@ stime_arg2(arg, year, tvp)
t->tm_mday = ATOI2(arg);
t->tm_hour = ATOI2(arg);
t->tm_min = ATOI2(arg);
- if (year) {
+ if (year)
t->tm_year = ATOI2(arg);
- if (t->tm_year < 39) /* support 2000-2038 not 1902-1969 */
- t->tm_year += 100;
- }
t->tm_isdst = -1; /* Figure out DST. */
tvp[0].tv_sec = tvp[1].tv_sec = mktime(t);