execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password
This commit is contained in:
parent
e025b4c306
commit
0f1df8e169
|
@ -817,9 +817,6 @@ static int setup_pam(
|
|||
|
||||
close_session = true;
|
||||
|
||||
if ((pam_code = pam_setcred(handle, PAM_ESTABLISH_CRED | PAM_SILENT)) != PAM_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
if ((!(e = pam_getenvlist(handle)))) {
|
||||
pam_code = PAM_BUF_ERR;
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue