summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session.c b/session.c
index 89e1ec892..7a70b82e6 100644
--- a/session.c
+++ b/session.c
@@ -1439,6 +1439,13 @@ do_child(Session *s, const char *command)
1439#endif /* HAVE_OSF_SIA */ 1439#endif /* HAVE_OSF_SIA */
1440 } 1440 }
1441 1441
1442#ifdef USE_PAM
1443 if (options.use_pam && !is_pam_session_open()) {
1444 display_loginmsg();
1445 exit(254);
1446 }
1447#endif
1448
1442 /* 1449 /*
1443 * Get the shell from the password data. An empty shell field is 1450 * Get the shell from the password data. An empty shell field is
1444 * legal, and means /bin/sh. 1451 * legal, and means /bin/sh.