File netkit-rsh-0.17-pam-sess.patch of Package rsh

--- rexecd/rexecd.c
+++ rexecd/rexecd.c
@@ -334,6 +334,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();
openSUSE Build Service is sponsored by