diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||