artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d017565
)
Call tzset() before dropping the priviledge to use correct timezone.
author
yasuoka
<yasuoka@openbsd.org>
Mon, 19 Oct 2015 07:18:31 +0000
(07:18 +0000)
committer
yasuoka
<yasuoka@openbsd.org>
Mon, 19 Oct 2015 07:18:31 +0000
(07:18 +0000)
usr.sbin/radiusd/radiusd_module.c
patch
|
blob
|
history
diff --git
a/usr.sbin/radiusd/radiusd_module.c
b/usr.sbin/radiusd/radiusd_module.c
index
03b1616
..
a75ec29
100644
(file)
--- a/
usr.sbin/radiusd/radiusd_module.c
+++ b/
usr.sbin/radiusd/radiusd_module.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: radiusd_module.c,v 1.
4 2015/08/02 23:29:27
yasuoka Exp $ */
+/* $OpenBSD: radiusd_module.c,v 1.
5 2015/10/19 07:18:31
yasuoka Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@
-150,6
+150,8
@@
module_drop_privilege(struct module_base *base)
{
struct passwd *pw;
+ tzset();
+
/* Drop the privilege */
if ((pw = getpwnam(RADIUSD_USER)) == NULL)
goto on_fail;