pam_putenv - set the value of an environment variable
int pam_putenv ( pam_handle_t *pamh, const char *namevalue, );
pam_putenv()is used by the PAM service modules to set the value of the environment variable defined by namevalue.
The arguments for
- pamh (in)
The PAM authentication handle, obtained from a previous call to
- namevalue (in)
Name and value of the environment variable to be set. It should be in the form "NAME=value"; for example, "SHELL=/bin/sh" .
The following PAM status codes shall be returned:
The environment variable could not be set.
Memory buffer error.
[??] Some characters or strings that appear in the printed document are not easily representable using HTML.