summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mopd
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-05-12 10:41:08 +0000
committerhenning <henning@openbsd.org>2004-05-12 10:41:08 +0000
commite4a93d041cacea835bae184e35412aafebafccb1 (patch)
tree4b281b1090ec8b17d4b7fb68d4e19d0cc11ae8ba /usr.sbin/mopd
parentlike always I missed tzset(); Ben Lovett <ben@tilderoot.com> (diff)
downloadwireguard-openbsd-e4a93d041cacea835bae184e35412aafebafccb1.tar.xz
wireguard-openbsd-e4a93d041cacea835bae184e35412aafebafccb1.zip
tzset
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r--usr.sbin/mopd/mopd/mopd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mopd/mopd/mopd.c b/usr.sbin/mopd/mopd/mopd.c
index 35e5e58b828..467c030e393 100644
--- a/usr.sbin/mopd/mopd/mopd.c
+++ b/usr.sbin/mopd/mopd/mopd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopd.c,v 1.11 2004/04/15 21:42:53 henning Exp $ */
+/* $OpenBSD: mopd.c,v 1.12 2004/05/12 10:43:44 henning Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@@ -26,7 +26,7 @@
#ifndef LINT
static const char rcsid[] =
- "$OpenBSD: mopd.c,v 1.11 2004/04/15 21:42:53 henning Exp $";
+ "$OpenBSD: mopd.c,v 1.12 2004/05/12 10:43:44 henning Exp $";
#endif
/*
@@ -118,6 +118,7 @@ main(int argc, char *argv[])
/* All error reporting is done through syslogs. */
openlog(__progname, LOG_PID | LOG_CONS, LOG_DAEMON);
+ tzset();
if ((pw = getpwnam("_mopd")) == NULL)
err(1, "getpwnam");