- (bal) Last AIX patch. Moved aix_usrinfo() outside of do_setuserconext()

since we need more session information than provided by that function.
This commit is contained in:
Ben Lindstrom 2002-02-25 15:48:02 +00:00
parent e06ae4a4bc
commit c004135b72
3 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
20020225
- (bal) Last AIX patch. Moved aix_usrinfo() outside of do_setuserconext()
since we need more session information than provided by that function.
20020224 20020224
- (bal) Drop Session *s usage in ports-aix.[ch] and pass just what we - (bal) Drop Session *s usage in ports-aix.[ch] and pass just what we
need to do the jobs (AIX still does not fully compile, but that is need to do the jobs (AIX still does not fully compile, but that is
@ -7666,4 +7670,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1873 2002/02/25 01:56:46 tim Exp $ $Id: ChangeLog,v 1.1874 2002/02/25 15:48:02 mouring Exp $

View File

@ -5,6 +5,6 @@ void set_limit(char *user, char *soft, char *hard, int resource, int mult);
void set_limits_from_userattr(char *user); void set_limits_from_userattr(char *user);
#endif /* HAVE_GETUSERATTR */ #endif /* HAVE_GETUSERATTR */
void aix_usrinfo(struct passwd *pw, char *tty, int ttyfd) void aix_usrinfo(struct passwd *pw, char *tty, int ttyfd);
#endif /* _AIX */ #endif /* _AIX */

View File

@ -1146,9 +1146,6 @@ do_setusercontext(struct passwd *pw)
# if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) # if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
irix_setusercontext(pw); irix_setusercontext(pw);
# endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ # 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 switch to the desired uid. */
permanently_set_uid(pw); permanently_set_uid(pw);
#endif #endif
@ -1190,6 +1187,9 @@ do_child(Session *s, const char *command)
do_motd(); do_motd();
#else /* HAVE_OSF_SIA */ #else /* HAVE_OSF_SIA */
do_nologin(pw); do_nologin(pw);
# ifdef _AIX
aix_usrinfo(pw, s->tty, s->ttyfd);
# endif /* _AIX */
do_setusercontext(pw); do_setusercontext(pw);
#endif /* HAVE_OSF_SIA */ #endif /* HAVE_OSF_SIA */
} }