summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-25 17:12:26 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-25 17:12:26 +0000
commitb129be657c17c2a861f6c9e2c1f2d9fdf2770615 (patch)
treeb1d8fb956ccaa7df1c7189fd2508f2861a1c739a /session.c
parent78688d7a4517e22748cc8f69a70cf92a97c8eacd (diff)
20020626
- (bal) moved aix_usrinfo() and noted not setting real TTY. Patch by dtucker@zip.com.au
Diffstat (limited to 'session.c')
-rw-r--r--session.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/session.c b/session.c
index 9abe028b0..4bdf28d45 100644
--- a/session.c
+++ b/session.c
@@ -1152,6 +1152,8 @@ do_nologin(struct passwd *pw)
1152void 1152void
1153do_setusercontext(struct passwd *pw) 1153do_setusercontext(struct passwd *pw)
1154{ 1154{
1155 char tty='\0';
1156
1155#ifdef HAVE_CYGWIN 1157#ifdef HAVE_CYGWIN
1156 if (is_winnt) { 1158 if (is_winnt) {
1157#else /* HAVE_CYGWIN */ 1159#else /* HAVE_CYGWIN */
@@ -1196,6 +1198,10 @@ do_setusercontext(struct passwd *pw)
1196# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) 1198# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
1197 irix_setusercontext(pw); 1199 irix_setusercontext(pw);
1198# endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ 1200# endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */
1201# ifdef _AIX
1202 /* XXX: Disable tty setting. Enabled if required later */
1203 aix_usrinfo(pw, &tty, -1);
1204# endif /* _AIX */
1199 /* Permanently switch to the desired uid. */ 1205 /* Permanently switch to the desired uid. */
1200 permanently_set_uid(pw); 1206 permanently_set_uid(pw);
1201#endif 1207#endif
@@ -1258,9 +1264,6 @@ do_child(Session *s, const char *command)
1258 do_motd(); 1264 do_motd();
1259#else /* HAVE_OSF_SIA */ 1265#else /* HAVE_OSF_SIA */
1260 do_nologin(pw); 1266 do_nologin(pw);
1261# ifdef _AIX
1262 aix_usrinfo(pw, s->tty, s->ttyfd);
1263# endif /* _AIX */
1264 do_setusercontext(pw); 1267 do_setusercontext(pw);
1265#endif /* HAVE_OSF_SIA */ 1268#endif /* HAVE_OSF_SIA */
1266 } 1269 }