diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-05-13 18:25:13 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-05-13 18:25:13 +0000 |
commit | 8dafcfaa167e72e7dc3cec388e934aadb9595f96 (patch) | |
tree | 88dae9e447b4a3eeace384a0b22059ff8cb00f72 | |
parent | 193b784c8a4ecb44c970d8aa7ab46b11fcd6d491 (diff) |
set the correct timezone using tzset() before before writing to syslog.
thanks to Bruno Carnazzi
-rw-r--r-- | usr.sbin/hostapd/hostapd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c index f23d0f43247..7b93c6c42db 100644 --- a/usr.sbin/hostapd/hostapd.c +++ b/usr.sbin/hostapd/hostapd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hostapd.c,v 1.27 2006/02/25 13:38:25 reyk Exp $ */ +/* $OpenBSD: hostapd.c,v 1.28 2006/05/13 18:25:12 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> @@ -442,6 +442,7 @@ main(int argc, char *argv[]) */ if ((cfg->c_debug = debug) == 0) { openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); + tzset(); daemon(0, 0); } |