diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-07-01 09:48:29 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-07-01 09:48:29 +1000 |
commit | 0a44d1ecf36455f7288a6f4349e676d922a46718 (patch) | |
tree | bd72e6dff246b43bc637bff5117152f2e639f8d3 /session.c | |
parent | a6b1d169e601a5fe0dcd0e49c038671446932026 (diff) |
- (dtucker) [session.c] Call display_loginmsg again after do_pam_session.
Ensures messages from PAM modules are displayed when privsep=no.
Note: I did not want to just move display_loginmsg since that would change
existing behaviour (order of expiry warnings, "Last Login", motd) to less
like the native tools.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1431,6 +1431,13 @@ do_child(Session *s, const char *command) | |||
1431 | #else /* HAVE_OSF_SIA */ | 1431 | #else /* HAVE_OSF_SIA */ |
1432 | do_nologin(pw); | 1432 | do_nologin(pw); |
1433 | do_setusercontext(pw); | 1433 | do_setusercontext(pw); |
1434 | /* | ||
1435 | * PAM session modules in do_setusercontext may have | ||
1436 | * generated messages, so if this in an interactive | ||
1437 | * login then display them too. | ||
1438 | */ | ||
1439 | if (command == NULL) | ||
1440 | display_loginmsg(); | ||
1434 | #endif /* HAVE_OSF_SIA */ | 1441 | #endif /* HAVE_OSF_SIA */ |
1435 | } | 1442 | } |
1436 | 1443 | ||