summaryrefslogtreecommitdiffstats
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-06-21 10:47:12 +0000
committerbrian <brian@FreeBSD.org>2004-06-21 10:47:12 +0000
commit453b5a4b34a3824f6b62163aad95ac7f3d2f5787 (patch)
tree9a39319fe5412d43f5fed15ddaab048898f881af /libexec/tftpd
parentdf25a03253a20d8e3c15cf5f78ef28f49b58cb68 (diff)
downloadFreeBSD-src-453b5a4b34a3824f6b62163aad95ac7f3d2f5787.zip
FreeBSD-src-453b5a4b34a3824f6b62163aad95ac7f3d2f5787.tar.gz
Call tzset() at startup.
Submitted by: Andrzej Toboƅa <ato@iem.pw.edu.pl>
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 0067287..29fe0e7 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) {
OpenPOWER on IntegriCloud