Blob Blame History Raw
--- netkit-rsh-0.17/rexecd/rexecd.c.pam-sess	2004-11-17 10:58:27.894345912 +0100
+++ netkit-rsh-0.17/rexecd/rexecd.c	2004-11-17 10:58:44.794776656 +0100
@@ -307,6 +307,9 @@
        PAM_BAIL;
        pam_error = pam_setcred(pamh, PAM_ESTABLISH_CRED);
        PAM_BAIL;
+       pam_error = pam_open_session(pamh, 0);
+       PAM_BAIL;
+       pam_close_session(pamh, 0);
        pam_end(pamh, PAM_SUCCESS);
        /* If this point is reached, the user has been authenticated. */
        setpwent();