From: mmaslano Date: Fri, 17 Aug 2007 13:12:45 +0000 (+0200) Subject: 'Build enviroment' is set in pam section for better security. X-Git-Tag: v4.2~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d908f090c4be4897ce8c0fa6312c6a929cd07e95;p=cronie 'Build enviroment' is set in pam section for better security. --- diff --git a/do_command.c b/do_command.c index 5abce8a..e49c114 100644 --- a/do_command.c +++ b/do_command.c @@ -188,6 +188,7 @@ child_process(entry *e, user *u) { PAM_FAIL_CHECK; retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED | PAM_SILENT); PAM_FAIL_CHECK; + build_env(e->envp); log_close(); /* PAM has now re-opened our log to auth.info ! */ #endif