summaryrefslogtreecommitdiff
path: root/platform.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-05 13:07:24 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-11-05 13:07:24 +1100
commit7a8afe3186bd2007da3a2fce4276e5b96ed877f6 (patch)
tree5664b7ee8cb685f51f4af5084a7b9f8ea299d411 /platform.c
parent728d8371a1dc1b615284ece94b0085897b4c0b51 (diff)
- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
platform.c
Diffstat (limited to 'platform.c')
-rw-r--r--platform.c8
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)
102void 102void
103platform_setusercontext_post_groups(struct passwd *pw) 103platform_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