1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 01:27:11 +03:00

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;