summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-30 04:14:50 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-30 04:14:50 +0200
commit0f1df8e1691f6a0397153860caf28fda38231833 (patch)
treee21228e681c5b8f27463e2628dccc29e51443ef6 /src/execute.c
parente025b4c306d4b0895786839ebbb934188edc6e61 (diff)
execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/execute.c b/src/execute.c
index cb55843542..1a5f09d324 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;