From 728d8371a1dc1b615284ece94b0085897b4c0b51 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 5 Nov 2010 13:00:05 +1100 Subject: - (dtucker) [platform.c session.c] Move the PAM credential establishment for the LOGIN_CAP case into platform.c. --- session.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'session.c') diff --git a/session.c b/session.c index 0775d78d2..a2d8bec8b 100644 --- a/session.c +++ b/session.c @@ -1476,11 +1476,6 @@ do_setusercontext(struct passwd *pw) #endif /* HAVE_CYGWIN */ { #ifdef HAVE_LOGIN_CAP -# ifdef USE_PAM - if (options.use_pam) { - do_pam_setcred(use_privsep); - } -# endif /* USE_PAM */ if (setusercontext(lc, pw, pw->pw_uid, (LOGIN_SETALL & ~(LOGIN_SETPATH|LOGIN_SETUSER))) < 0) { perror("unable to set user context"); -- cgit v1.2.3