]> err.no Git - systemd/commitdiff
execute: don't invoke pam_setcred, since we are not running on a tty where the user...
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Jun 2011 02:14:50 +0000 (04:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 30 Jun 2011 02:14:50 +0000 (04:14 +0200)
src/execute.c

index cb5584354293cdb3375838e1eeb44fe3e896214c..1a5f09d324d6f12d47a7c08bfa1c2432bdfda079 100644 (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;