diff options
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/platform.c b/platform.c index 0335eaae6..910e39713 100644 --- a/platform.c +++ b/platform.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: platform.c,v 1.9 2010/11/05 02:00:05 dtucker Exp $ */ | 1 | /* $Id: platform.c,v 1.10 2010/11/05 02:07: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,12 @@ 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(USE_LIBIAF) | ||
106 | if (set_id(pw->pw_name) != 0) { | ||
107 | exit(1); | ||
108 | } | ||
109 | # endif /* USE_LIBIAF */ | ||
110 | |||
105 | #ifdef HAVE_SETPCRED | 111 | #ifdef HAVE_SETPCRED |
106 | /* | 112 | /* |
107 | * If we have a chroot directory, we set all creds except real | 113 | * If we have a chroot directory, we set all creds except real |