summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-02-06 15:30:50 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-02-06 15:30:50 +1100
commitef3a4a208c4bd711f7c4131e3bb293313652450d (patch)
treef581ce49a1d74f5038c431eb37aa6db8aa20ecf1 /session.c
parent6977fe742b363b84822afd45c9b2ef36f16e0ae3 (diff)
downloadopenssh-git-ef3a4a208c4bd711f7c4131e3bb293313652450d.tar.gz
- (dtucker) [session.c] Bug #789: Do not call do_pam_setcred as a non-root
user, since some modules might fail due to lack of privilege. ok djm@
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 3a6d1a02..02c5dca9 100644
--- a/session.c
+++ b/session.c
@@ -519,7 +519,8 @@ do_exec_pty(Session *s, const char *command)
#if defined(USE_PAM)
if (options.use_pam) {
do_pam_set_tty(s->tty);
- do_pam_setcred(1);
+ if (!use_privsep)
+ do_pam_setcred(1);
}
#endif