summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-27 10:48:01 +1100
committerDamien Miller <djm@mindrot.org>2001-02-27 10:48:01 +1100
commit7bd1c6262b059064ce71e39a883c8f0de8a25139 (patch)
treefd0ffb0f5581515178390f067f34c049b0b53d7a /session.c
parenta66eca47ee454de6c18a0fe8af7d5f562c00c99d (diff)
- (djm) Fix PAM fix
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index d4053b4c..be0cdf79 100644
--- a/session.c
+++ b/session.c
@@ -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