summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 13:29:25 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 13:29:25 +1100
commit0b2ee6452c6c6e0c37dc10072ec4cf711e8dde89 (patch)
tree9b48d1d3cfad254cf3be796a1d2f2e263cf3fde7
parent676b912e780499e9f59e8add7859a014cb2db07d (diff)
downloadopenssh-git-0b2ee6452c6c6e0c37dc10072ec4cf711e8dde89.tar.gz
- (dtucker) [platform.c session.c] Move irix setusercontext fragment into
platform.c.
-rw-r--r--ChangeLog4
-rw-r--r--platform.c7
-rw-r--r--session.c3
3 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a6380346..c82f56b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,7 +35,9 @@
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.
+ - (dtucker) [platform.c session.c] Move aix_usrinfo frament into platform.c.
+ - (dtucker) [platform.c session.c] Move irix setusercontext fragment 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 97439b57..c8163f90 100644
--- a/platform.c
+++ b/platform.c
@@ -1,4 +1,4 @@
-/* $Id: platform.c,v 1.11 2010/11/05 02:11:04 dtucker Exp $ */
+/* $Id: platform.c,v 1.12 2010/11/05 02:29:25 dtucker Exp $ */
/*
* Copyright (c) 2006 Darren Tucker. All rights reserved.
@@ -102,6 +102,11 @@ platform_setusercontext(struct passwd *pw)
void
platform_setusercontext_post_groups(struct passwd *pw)
{
+#if !defined(HAVE_LOGIN_CAP) && (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 */
diff --git a/session.c b/session.c
index fc712ad9..002cfd84 100644
--- a/session.c
+++ b/session.c
@@ -1510,9 +1510,6 @@ do_setusercontext(struct passwd *pw)
do_pam_setcred(use_privsep);
}
# endif /* USE_PAM */
-# 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) */
#endif
platform_setusercontext_post_groups(pw);