diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |