- (djm) Fix PAM fix

This commit is contained in:
Damien Miller 2001-02-27 10:48:01 +11:00
parent a66eca47ee
commit 7bd1c6262b
2 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@
- (djm) Move PAM init to after fork for non-Solaris derived PAMs
- (djm) Warning fix on entropy.c saved uid stuff. Patch from Mark Miller
<markm@swoon.net>
- (djm) Fix PAM fix
20010226
- (bal) Fixed bsd-snprinf.c so it now honors 'BROKEN_SNPRINTF' again.
@ -4148,4 +4149,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.832 2001/02/26 22:47:16 djm Exp $
$Id: ChangeLog,v 1.833 2001/02/26 23:48:01 djm Exp $

View File

@ -1036,7 +1036,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
#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, s->tty);
do_pam_session(pw->pw_name, ttyname);
do_pam_setcred();
#endif