summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
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 d4053b4c9..be0cdf795 100644
--- a/session.c
+++ b/session.c
@@ -1036,7 +1036,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1036 1036
1037#if defined(USE_PAM) && !defined(PAM_SUN_CODEBASE) 1037#if defined(USE_PAM) && !defined(PAM_SUN_CODEBASE)
1038 /* Solaris-derived PAMs don't like doing this after the fork() */ 1038 /* Solaris-derived PAMs don't like doing this after the fork() */
1039 do_pam_session(pw->pw_name, s->tty); 1039 do_pam_session(pw->pw_name, ttyname);
1040 do_pam_setcred(); 1040 do_pam_setcred();
1041#endif 1041#endif
1042 1042