diff options
author | des <des@FreeBSD.org> | 2002-01-24 17:26:27 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-01-24 17:26:27 +0000 |
commit | 89b0bbd18731d0536e4752275e10bf88a5e09fd9 (patch) | |
tree | 3c3239aa6eeeb77d815eba1e2e19b81b3748da64 /lib | |
parent | 9db2b843635d9ef5d67ef3158000a5c54c7e0df0 (diff) | |
download | FreeBSD-src-89b0bbd18731d0536e4752275e10bf88a5e09fd9.zip FreeBSD-src-89b0bbd18731d0536e4752275e10bf88a5e09fd9.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpam/modules/pam_ssh/pam_ssh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.c b/lib/libpam/modules/pam_ssh/pam_ssh.c index 91f0752..c8c9d8c 100644 --- a/lib/libpam/modules/pam_ssh/pam_ssh.c +++ b/lib/libpam/modules/pam_ssh/pam_ssh.c @@ -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); |