summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-05-05 11:19:08 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-05-05 11:19:08 +0000
commit2f004f6243d9705ee688aec7c9323a5740c01cd7 (patch)
tree3407803a661e031b121ffd0953f71c7cf62620fb /sbin
parent1b870d7bf59aaa8a27c8825a5b3b7a40371a68d3 (diff)
use tzset() before chrooting
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dhclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 5f626992cba..694c1dee8d0 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.42 2004/05/05 10:51:23 henning Exp $ */
+/* $OpenBSD: dhclient.c,v 1.43 2004/05/05 11:19:07 henning Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -212,7 +212,7 @@ main(int argc, char *argv[])
struct passwd *pw;
/* Initially, log errors to stderr as well as to syslogd. */
- openlog(__progname, LOG_NDELAY, DHCPD_LOG_FACILITY);
+ openlog(__progname, LOG_PID | LOG_NDELAY, DHCPD_LOG_FACILITY);
setlogmask(LOG_UPTO(LOG_INFO));
while ((ch = getopt(argc, argv, "c:dl:qu")) != -1)
@@ -253,7 +253,7 @@ main(int argc, char *argv[])
if (quiet)
log_perror = 0;
- /* Get the current time... */
+ tzset();
time(&cur_time);
memset(&sockaddr_broadcast, 0, sizeof(sockaddr_broadcast));