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:
Dag-Erling Smørgrav 2002-01-24 17:26:27 +00:00
parent 30be5b1b49
commit f748a713da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89753

View File

@ -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);