From d89b46203d7381d858c629ed0767ba4bd4d51d71 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 17 Mar 2015 19:31:31 +0000 Subject: Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@ --- usr.bin/ftp/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ftp') diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index 2013c8aff65..984bf71beda 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.71 2015/03/15 00:41:28 millert Exp $ */ +/* $OpenBSD: util.c,v 1.72 2015/03/17 19:31:30 millert Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /*- @@ -645,7 +645,7 @@ remotemodtime(const char *file, int noisy) timebuf.tm_hour = hour; timebuf.tm_mday = day; timebuf.tm_mon = mo - 1; - timebuf.tm_year = yy - TM_YEAR_BASE; + timebuf.tm_year = yy - 1900; timebuf.tm_isdst = -1; rtime = mktime(&timebuf); if (rtime == -1 && (noisy -- cgit v1.2.3