Call tzset() at startup.

Submitted by:	Andrzej ToboÅa <ato@iem.pw.edu.pl>
This commit is contained in:
Brian Somers 2004-06-21 10:47:12 +00:00
parent 71ae6999b6
commit 3ec73cf100

View file

@ -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) {