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 cf2098931..a3a7ee784 100644
--- a/session.c
+++ b/session.c
@@ -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