From: Lennart Poettering Date: Thu, 30 Jun 2011 02:14:50 +0000 (+0200) Subject: execute: don't invoke pam_setcred, since we are not running on a tty where the user... X-Git-Tag: v30~87 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0f1df8e1691f6a0397153860caf28fda38231833 execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password --- diff --git a/src/execute.c b/src/execute.c index cb5584354..1a5f09d32 100644 --- a/src/execute.c +++ b/src/execute.c @@ -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;