diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-11-05 13:29:25 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-11-05 13:29:25 +1100 |
commit | 0b2ee6452c6c6e0c37dc10072ec4cf711e8dde89 (patch) | |
tree | 9b48d1d3cfad254cf3be796a1d2f2e263cf3fde7 | |
parent | 676b912e780499e9f59e8add7859a014cb2db07d (diff) |
- (dtucker) [platform.c session.c] Move irix setusercontext fragment into
platform.c.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | platform.c | 7 | ||||
-rw-r--r-- | session.c | 3 |
3 files changed, 9 insertions, 5 deletions
@@ -35,7 +35,9 @@ | |||
35 | the LOGIN_CAP case into platform.c. | 35 | the LOGIN_CAP case into platform.c. |
36 | - (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into | 36 | - (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into |
37 | platform.c | 37 | platform.c |
38 | - (dtucker) platform.c session.c] Move aix_usrinfo frament into platform.c. | 38 | - (dtucker) [platform.c session.c] Move aix_usrinfo frament into platform.c. |
39 | - (dtucker) [platform.c session.c] Move irix setusercontext fragment into | ||
40 | platform.c. | ||
39 | 41 | ||
40 | 20101025 | 42 | 20101025 |
41 | - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with | 43 | - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with |
diff --git a/platform.c b/platform.c index 97439b574..c8163f901 100644 --- a/platform.c +++ b/platform.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: platform.c,v 1.11 2010/11/05 02:11:04 dtucker Exp $ */ | 1 | /* $Id: platform.c,v 1.12 2010/11/05 02:29:25 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. | 4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. |
@@ -102,6 +102,11 @@ platform_setusercontext(struct passwd *pw) | |||
102 | void | 102 | void |
103 | platform_setusercontext_post_groups(struct passwd *pw) | 103 | platform_setusercontext_post_groups(struct passwd *pw) |
104 | { | 104 | { |
105 | #if !defined(HAVE_LOGIN_CAP) && (defined(WITH_IRIX_PROJECT) || \ | ||
106 | defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)) | ||
107 | irix_setusercontext(pw); | ||
108 | #endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ | ||
109 | |||
105 | #ifdef _AIX | 110 | #ifdef _AIX |
106 | aix_usrinfo(pw); | 111 | aix_usrinfo(pw); |
107 | #endif /* _AIX */ | 112 | #endif /* _AIX */ |
@@ -1510,9 +1510,6 @@ do_setusercontext(struct passwd *pw) | |||
1510 | do_pam_setcred(use_privsep); | 1510 | do_pam_setcred(use_privsep); |
1511 | } | 1511 | } |
1512 | # endif /* USE_PAM */ | 1512 | # endif /* USE_PAM */ |
1513 | # if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) | ||
1514 | irix_setusercontext(pw); | ||
1515 | # endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */ | ||
1516 | #endif | 1513 | #endif |
1517 | 1514 | ||
1518 | platform_setusercontext_post_groups(pw); | 1515 | platform_setusercontext_post_groups(pw); |