diff options
-rw-r--r-- | src/appl/gssftp/ftp/ChangeLog | 5 | ||||
-rw-r--r-- | 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 2dced6319e..5d04a3270f 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 <tytso@rsts-11.mit.edu> + + * 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 <tlyu@mit.edu> * Makefile.in: diff --git a/src/appl/gssftp/ftp/cmds.c b/src/appl/gssftp/ftp/cmds.c index 97bcc90400..6759a25904 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) { |