From fed2fae725f7ed06dec398cd8257d5c88d081635 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 8 May 1998 22:15:18 +0000 Subject: [PATCH] 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 --- src/appl/gssftp/ftpd/ChangeLog | 4 ++++ 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 + + * 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) -- 2.26.2