summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 13:11:04 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 13:11:04 +1100
commit676b912e780499e9f59e8add7859a014cb2db07d (patch)
treef3953e2d9f62131b6dcdb972e476ce89041bd1e5
parent7a8afe3186bd2007da3a2fce4276e5b96ed877f6 (diff)
- (dtucker) platform.c session.c] Move aix_usrinfo frament into platform.c.
-rw-r--r--ChangeLog1
-rw-r--r--platform.c6
-rw-r--r--session.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6595f676..a6380346 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,7 @@
the LOGIN_CAP case into platform.c.
- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
platform.c
+ - (dtucker) platform.c session.c] Move aix_usrinfo frament into platform.c.
20101025
- (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
diff --git a/platform.c b/platform.c
index 910e3971..97439b57 100644
--- a/platform.c
+++ b/platform.c
@@ -1,4 +1,4 @@
-/* $Id: platform.c,v 1.10 2010/11/05 02:07:25 dtucker Exp $ */
+/* $Id: platform.c,v 1.11 2010/11/05 02:11:04 dtucker Exp $ */
/*
* Copyright (c) 2006 Darren Tucker. All rights reserved.
@@ -102,6 +102,10 @@ platform_setusercontext(struct passwd *pw)
void
platform_setusercontext_post_groups(struct passwd *pw)
{
+#ifdef _AIX
+ aix_usrinfo(pw);
+#endif /* _AIX */
+
#if !defined(HAVE_LOGIN_CAP) && defined(USE_LIBIAF)
if (set_id(pw->pw_name) != 0) {
exit(1);
diff --git a/session.c b/session.c
index 6ef07c40..fc712ad9 100644
--- a/session.c
+++ b/session.c
@@ -1513,9 +1513,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(pw);
-# endif /* _AIX */
#endif
platform_setusercontext_post_groups(pw);