diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-02-06 15:30:50 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-02-06 15:30:50 +1100 |
commit | ef3a4a208c4bd711f7c4131e3bb293313652450d (patch) | |
tree | f581ce49a1d74f5038c431eb37aa6db8aa20ecf1 /session.c | |
parent | 6977fe742b363b84822afd45c9b2ef36f16e0ae3 (diff) | |
download | openssh-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |