diff --git a/ChangeLog b/ChangeLog index 484112b6b..ebcb67a45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 20010228 - (djm) Detect endianness in configure and use it in rijndael.c. Fixes "Bad packet length" bugs. + - (djm) Fully revert PAM session patch. All PAM session init is now done + before the final fork(). 20010227 - (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen @@ -4162,4 +4164,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.837 2001/02/27 21:14:40 djm Exp $ +$Id: ChangeLog,v 1.838 2001/02/28 00:46:11 djm Exp $ diff --git a/session.c b/session.c index be0cdf795..2fa0700f7 100644 --- a/session.c +++ b/session.c @@ -487,8 +487,7 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw) session_proctitle(s); -#if defined(USE_PAM) && defined(PAM_SUN_CODEBASE) - /* Solaris-derived PAMs don't like doing this after the fork() */ +#if defined(USE_PAM) do_pam_setcred(); #endif /* USE_PAM */ @@ -604,8 +603,7 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw) ptyfd = s->ptyfd; ttyfd = s->ttyfd; -#if defined(USE_PAM) && defined(PAM_SUN_CODEBASE) - /* Solaris-derived PAMs don't like doing this after the fork() */ +#if defined(USE_PAM) do_pam_session(pw->pw_name, s->tty); do_pam_setcred(); #endif @@ -1034,12 +1032,6 @@ do_child(const char *command, struct passwd * pw, const char *term, #endif /* WITH_IRIX_ARRAY */ #endif /* WITH_IRIX_JOBS */ -#if defined(USE_PAM) && !defined(PAM_SUN_CODEBASE) - /* Solaris-derived PAMs don't like doing this after the fork() */ - do_pam_session(pw->pw_name, ttyname); - do_pam_setcred(); -#endif - /* login(1) is only called if we execute the login shell */ if (options.use_login && command != NULL) options.use_login = 0;