summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-02-25 16:48:02 +0100
committerBen Lindstrom <mouring@eviladmin.org>2002-02-25 16:48:02 +0100
commitc004135b72ff934c2576f8dec4d35d53019bf239 (patch)
tree41523774bd884409eae08ef6ac757b104eda922b /session.c
parent[loginrec.c session.c sshlogin.c sshlogin.h] Bug 84 (diff)
downloadopenssh-c004135b72ff934c2576f8dec4d35d53019bf239.tar.xz
openssh-c004135b72ff934c2576f8dec4d35d53019bf239.zip
- (bal) Last AIX patch. Moved aix_usrinfo() outside of do_setuserconext()
since we need more session information than provided by that function.
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/session.c b/session.c
index bf1a3ecf7..a31ff85d8 100644
--- a/session.c
+++ b/session.c
@@ -1146,9 +1146,6 @@ do_setusercontext(struct passwd *pw)
# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
irix_setusercontext(pw);
# endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */
-#ifdef _AIX
- aix_usrinfo(s)
-#endif
/* Permanently switch to the desired uid. */
permanently_set_uid(pw);
#endif
@@ -1190,6 +1187,9 @@ do_child(Session *s, const char *command)
do_motd();
#else /* HAVE_OSF_SIA */
do_nologin(pw);
+# ifdef _AIX
+ aix_usrinfo(pw, s->tty, s->ttyfd);
+# endif /* _AIX */
do_setusercontext(pw);
#endif /* HAVE_OSF_SIA */
}