ftpcmd.y (cmd): Fix Y2K problem in the MDTM command
authorTheodore Tso <tytso@mit.edu>
Fri, 8 May 1998 22:15:18 +0000 (22:15 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 8 May 1998 22:15:18 +0000 (22:15 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10554 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftpd/ChangeLog
src/appl/gssftp/ftpd/ftpcmd.y

index 2a9bee27862c48624efdd0231d0c3d6b80803426..92019dcfe7a4990a961e79f66fada40fec4a9928 100644 (file)
@@ -1,3 +1,7 @@
+Fri May  8 18:06:52 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * ftpcmd.y (cmd): Fix Y2K problem in the MDTM command.
+
 Fri Apr 10 20:06:31 1998  Tom Yu  <tlyu@mit.edu>
 
        * ftpd.c (receive_data):
index aa0aa1b31c5cc60269964a940457eb048dc280c0..fe2b76d77473d0fe90767b2cc8fa3d8d990ed27d 100644 (file)
@@ -592,9 +592,10 @@ cmd:               USER SP username CRLF
                                        struct tm *gmtime();
                                        t = gmtime(&stbuf.st_mtime);
                                        reply(213,
-                                           "19%02d%02d%02d%02d%02d%02d",
-                                           t->tm_year, t->tm_mon+1, t->tm_mday,
-                                           t->tm_hour, t->tm_min, t->tm_sec);
+                                           "%4d%02d%02d%02d%02d%02d",
+                                           1900+t->tm_year, t->tm_mon+1, 
+                                           t->tm_mday, t->tm_hour, 
+                                           t->tm_min, t->tm_sec);
                                }
                        }
                        if ($4 != NULL)