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
30be5b1b49
commit
f748a713da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89753
@ -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