summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/session.c b/session.c
index 3a6d1a028..02c5dca9b 100644
--- a/session.c
+++ b/session.c
@@ -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