Fix Y2K bug in the parsing of the MDTM command. [krb5-appl/399]
authorTheodore Tso <tytso@mit.edu>
Fri, 2 May 1997 02:58:43 +0000 (02:58 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 2 May 1997 02:58:43 +0000 (02:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10083 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/cmds.c

index 2dced6319e867908fa7ce1e091fdb7dd27c1e8dd..5d04a3270f9876d4ee6eabaa51856685dab8cd50 100644 (file)
@@ -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:
index 97bcc90400028bfcd5ab34c0dcd60b0629f9d895..6759a2590435d9159f6724b6fbcd23b0bb449f6f 100644 (file)
@@ -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) {