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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f1df8e1691f6a0397153860caf28fda38231833;p=systemd 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 cb558435..1a5f09d3 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;