diff options
| author | Brian Somers <brian@FreeBSD.org> | 2004-06-21 10:47:12 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2004-06-21 10:47:12 +0000 |
| commit | 3ec73cf1001463b2115697c35017aaee367fc703 (patch) | |
| tree | 9a39319fe5412d43f5fed15ddaab048898f881af /libexec | |
| parent | 71ae6999b6b7e309df8e545ef5adf960375d848e (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/tftpd/tftpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 00672872bb99..29fe0e7533ce 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -57,6 +57,7 @@ static const char rcsid[] = #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> +#include <sys/time.h> #include <netinet/in.h> #include <arpa/tftp.h> @@ -131,6 +132,8 @@ main(int argc, char *argv[]) struct passwd *nobody; const char *chuser = "nobody"; + tzset(); /* syslog in localtime */ + openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); while ((ch = getopt(argc, argv, "cClns:u:Uw")) != -1) { switch (ch) { |
