diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 00672872bb9..29fe0e7533c 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -57,6 +57,7 @@ static const char rcsid[] = #include #include #include +#include #include #include @@ -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) {