From: yasuoka Date: Mon, 19 Oct 2015 07:18:31 +0000 (+0000) Subject: Call tzset() before dropping the priviledge to use correct timezone. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=61125a9027e62f38376287c74aec91cff0f67f12;p=openbsd Call tzset() before dropping the priviledge to use correct timezone. --- 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;