diff options
author | Theodore Tso <tytso@mit.edu> | 1998-05-08 22:15:18 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1998-05-08 22:15:18 +0000 |
commit | fed2fae725f7ed06dec398cd8257d5c88d081635 (patch) | |
tree | 030f5f57fbed9be347721f2df90d09a6ecaba346 /src/appl | |
parent | ab73e4c3979ad4b52dbc3e2230d911c626de7d7e (diff) | |
download | krb5-fed2fae725f7ed06dec398cd8257d5c88d081635.tar.gz krb5-fed2fae725f7ed06dec398cd8257d5c88d081635.tar.xz krb5-fed2fae725f7ed06dec398cd8257d5c88d081635.zip |
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
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/gssftp/ftpd/ChangeLog | 4 | ||||
-rw-r--r-- | src/appl/gssftp/ftpd/ftpcmd.y | 7 |
2 files changed, 8 insertions, 3 deletions
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 <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): 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) |