diff options
author | Theodore Tso <tytso@mit.edu> | 1997-05-02 02:58:43 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1997-05-02 02:58:43 +0000 |
commit | 3dd97b8bbb66cbbd2c9656c837e4fdd9b0c77d51 (patch) | |
tree | cad0abfb0075d8fe00b9c164c22162bb2d4654bb /src/appl/gssftp | |
parent | b067bb6b01dcc3d6c409fede7fe1350003257f03 (diff) | |
download | krb5-3dd97b8bbb66cbbd2c9656c837e4fdd9b0c77d51.tar.gz krb5-3dd97b8bbb66cbbd2c9656c837e4fdd9b0c77d51.tar.xz krb5-3dd97b8bbb66cbbd2c9656c837e4fdd9b0c77d51.zip |
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
Diffstat (limited to 'src/appl/gssftp')
-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) { |