summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/isakmpd.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-04-08 10:05:55 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-04-08 10:05:55 +0000
commit319bda2ef300d31378d49befee97a7434938df4c (patch)
treeecad033c77bdade09fdef3886f27383b7c4ba413 /sbin/isakmpd/isakmpd.c
parent371dd3432c0c49742443e6d7d66492616df18498 (diff)
Set timezone before privsep, child uses now correct timezone.
Noticed by david@ ok ho@ david@
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r--sbin/isakmpd/isakmpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index 12ae94e2ed0..3130491da1e 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmpd.c,v 1.59 2004/03/31 10:47:16 ho Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.60 2004/04/08 10:05:54 hshoexer Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include <fcntl.h>
@@ -397,6 +398,9 @@ main (int argc, char *argv[])
if (daemon (0, 0))
log_fatal ("main: daemon (0, 0) failed");
+ /* Set timezone before priv'separation */
+ tzset();
+
#if defined (USE_PRIVSEP)
if (monitor_init ())
{