PAM modules shouldn't call putenv(); pam_putenv() is sufficient. The
caller is supposed to check the PAM envlist and export the variables it contains; if it doesn't, it's broken. Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
9db2b84363
commit
89b0bbd187
@ -426,7 +426,6 @@ pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, const char **argv)
|
||||
fclose(env_fp);
|
||||
PAM_RETURN(PAM_SERVICE_ERR);
|
||||
}
|
||||
putenv(env_string);
|
||||
|
||||
PAM_LOG("Put to environment: %s", env_string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user