diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -519,7 +519,8 @@ do_exec_pty(Session *s, const char *command) | |||
519 | #if defined(USE_PAM) | 519 | #if defined(USE_PAM) |
520 | if (options.use_pam) { | 520 | if (options.use_pam) { |
521 | do_pam_set_tty(s->tty); | 521 | do_pam_set_tty(s->tty); |
522 | do_pam_setcred(1); | 522 | if (!use_privsep) |
523 | do_pam_setcred(1); | ||
523 | } | 524 | } |
524 | #endif | 525 | #endif |
525 | 526 | ||