summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1998-05-08 22:15:18 +0000
committerTheodore Tso <tytso@mit.edu>1998-05-08 22:15:18 +0000
commitfed2fae725f7ed06dec398cd8257d5c88d081635 (patch)
tree030f5f57fbed9be347721f2df90d09a6ecaba346 /src/appl
parentab73e4c3979ad4b52dbc3e2230d911c626de7d7e (diff)
downloadkrb5-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/ChangeLog4
-rw-r--r--src/appl/gssftp/ftpd/ftpcmd.y7
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)