From 61125a9027e62f38376287c74aec91cff0f67f12 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Mon, 19 Oct 2015 07:18:31 +0000 Subject: [PATCH] Call tzset() before dropping the priviledge to use correct timezone. --- usr.sbin/radiusd/radiusd_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/radiusd/radiusd_module.c b/usr.sbin/radiusd/radiusd_module.c index 03b161661c7..a75ec29cd82 100644 --- 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 @@ -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; -- 2.20.1