diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-22 06:46:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-22 06:46:10 +0000 |
commit | ea8ae5627ec61067fc2ff07e9935ae7d735b112b (patch) | |
tree | 3033d0e4810673e058d042b7881512a5c748714f /libexec/ftpd/ftpcmd.y | |
parent | 4d8d51ca75eabc6c8770e1801fcfda6d6981b10f (diff) |
use TM_YEAR_BASE; lukem
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 1d50f11e9bb..a7eb19441a5 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.15 1998/02/03 22:21:21 downsj Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.16 1998/05/22 06:46:09 deraadt Exp $ */ /* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */ /* @@ -47,7 +47,7 @@ #if 0 static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94"; #else -static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.15 1998/02/03 22:21:21 downsj Exp $"; +static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.16 1998/05/22 06:46:09 deraadt Exp $"; #endif #endif /* not lint */ @@ -64,6 +64,7 @@ static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.15 1998/02/03 22:21:21 downsj Exp #include <pwd.h> #include <setjmp.h> #include <signal.h> +#include <tzfile.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -546,7 +547,7 @@ cmd t = gmtime(&stbuf.st_mtime); reply(213, "%04d%02d%02d%02d%02d%02d", - 1900 + t->tm_year, + TM_YEAR_BASE + t->tm_year, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); } |