From: Theodore Tso Date: Fri, 8 May 1998 22:15:18 +0000 (+0000) Subject: ftpcmd.y (cmd): Fix Y2K problem in the MDTM command X-Git-Tag: krb5-1.1-beta1~732 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fed2fae725f7ed06dec398cd8257d5c88d081635;p=krb5.git ftpcmd.y (cmd): Fix Y2K problem in the MDTM command git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10554 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 2a9bee278..92019dcfe 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,7 @@ +Fri May 8 18:06:52 1998 Theodore Y. Ts'o + + * ftpcmd.y (cmd): Fix Y2K problem in the MDTM command. + Fri Apr 10 20:06:31 1998 Tom Yu * ftpd.c (receive_data): diff --git a/src/appl/gssftp/ftpd/ftpcmd.y b/src/appl/gssftp/ftpd/ftpcmd.y index aa0aa1b31..fe2b76d77 100644 --- a/src/appl/gssftp/ftpd/ftpcmd.y +++ b/src/appl/gssftp/ftpd/ftpcmd.y @@ -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)