From 3ec73cf1001463b2115697c35017aaee367fc703 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 21 Jun 2004 10:47:12 +0000 Subject: [PATCH] Call tzset() at startup. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Submitted by: Andrzej Toboƅa --- libexec/tftpd/tftpd.c | 3 +++ 1 file changed, 3 insertions(+) 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) {