summaryrefslogtreecommitdiff
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
parent728d8371a1dc1b615284ece94b0085897b4c0b51 (diff)
- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
platform.c
-rw-r--r--ChangeLog2
-rw-r--r--platform.c8
-rw-r--r--session.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 909b9fc59..6595f6768 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,6 +33,8 @@
33 retain previous behavior. 33 retain previous behavior.
34 - (dtucker) [platform.c session.c] Move the PAM credential establishment for 34 - (dtucker) [platform.c session.c] Move the PAM credential establishment for
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
37 platform.c
36 38
3720101025 3920101025
38 - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with 40 - (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
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
diff --git a/session.c b/session.c
index a2d8bec8b..6ef07c407 100644
--- a/session.c
+++ b/session.c
@@ -1516,11 +1516,6 @@ do_setusercontext(struct passwd *pw)
1516# ifdef _AIX 1516# ifdef _AIX
1517 aix_usrinfo(pw); 1517 aix_usrinfo(pw);
1518# endif /* _AIX */ 1518# endif /* _AIX */
1519# ifdef USE_LIBIAF
1520 if (set_id(pw->pw_name) != 0) {
1521 exit(1);
1522 }
1523# endif /* USE_LIBIAF */
1524#endif 1519#endif
1525 1520
1526 platform_setusercontext_post_groups(pw); 1521 platform_setusercontext_post_groups(pw);