summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-05-05 11:19:07 +0000
committerhenning <henning@openbsd.org>2004-05-05 11:19:07 +0000
commit06aa1e7c5218cc425048f7020b7dc5746e641e32 (patch)
treecb0344257cefa550809d3e136865b3a3b21a3307
parentopen bpf and routefd a little later, after forking the priv child so it (diff)
downloadwireguard-openbsd-06aa1e7c5218cc425048f7020b7dc5746e641e32.tar.xz
wireguard-openbsd-06aa1e7c5218cc425048f7020b7dc5746e641e32.zip
use tzset() before chrooting
-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));