summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 13:32:52 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 13:32:52 +1100
commitcc12418e18242ce1f61d7035da4956274ba13a96 (patch)
tree78f4ed69e3190a3bae84cf2e64c7c37382cbe106 /session.c
parent0b2ee6452c6c6e0c37dc10072ec4cf711e8dde89 (diff)
- (dtucker) [platform.c session.c] Move PAM credential establishment for the
non-LOGIN_CAP case into platform.c.
Diffstat (limited to 'session.c')
-rw-r--r--session.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/session.c b/session.c
index 002cfd844..f1f26ef69 100644
--- a/session.c
+++ b/session.c
@@ -1500,16 +1500,6 @@ do_setusercontext(struct passwd *pw)
1500 exit(1); 1500 exit(1);
1501 } 1501 }
1502 endgrent(); 1502 endgrent();
1503# ifdef USE_PAM
1504 /*
1505 * PAM credentials may take the form of supplementary groups.
1506 * These will have been wiped by the above initgroups() call.
1507 * Reestablish them here.
1508 */
1509 if (options.use_pam) {
1510 do_pam_setcred(use_privsep);
1511 }
1512# endif /* USE_PAM */
1513#endif 1503#endif
1514 1504
1515 platform_setusercontext_post_groups(pw); 1505 platform_setusercontext_post_groups(pw);