From 3dd97b8bbb66cbbd2c9656c837e4fdd9b0c77d51 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 2 May 1997 02:58:43 +0000 Subject: [PATCH] Fix Y2K bug in the parsing of the MDTM command. [krb5-appl/399] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10083 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftp/ChangeLog | 5 +++++ src/appl/gssftp/ftp/cmds.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index 2dced6319..5d04a3270 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 30 14:59:03 1997 Theodore Ts'o + + * cmds.c (getit): Fix Y2K bug in the parsing of the MDTM command. + [krb5-appl/399] + Wed Feb 5 20:29:31 1997 Tom Yu * Makefile.in: diff --git a/src/appl/gssftp/ftp/cmds.c b/src/appl/gssftp/ftp/cmds.c index 97bcc9040..6759a2590 100644 --- a/src/appl/gssftp/ftp/cmds.c +++ b/src/appl/gssftp/ftp/cmds.c @@ -819,9 +819,9 @@ usage: &yy, &mo, &day, &hour, &min, &sec); tm = gmtime(&stbuf.st_mtime); tm->tm_mon++; - if (tm->tm_year > yy%100) + if (tm->tm_year > yy-1900) return (1); - else if (tm->tm_year == yy%100) { + else if (tm->tm_year == yy-1900) { if (tm->tm_mon > mo) return (1); } else if (tm->tm_mon == mo) { -- 2.26.2