mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
Call tzset() at startup.
Submitted by: Andrzej ToboÅa <ato@iem.pw.edu.pl>
This commit is contained in:
parent
71ae6999b6
commit
3ec73cf100
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue