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:
Lennart Poettering 2011-06-30 04:14:50 +02:00
parent e025b4c306
commit 0f1df8e169

View file

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