mirror of git://anongit.mindrot.org/openssh.git
- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
platform.c
This commit is contained in:
parent
728d8371a1
commit
7a8afe3186
|
@ -33,6 +33,8 @@
|
||||||
retain previous behavior.
|
retain previous behavior.
|
||||||
- (dtucker) [platform.c session.c] Move the PAM credential establishment for
|
- (dtucker) [platform.c session.c] Move the PAM credential establishment for
|
||||||
the LOGIN_CAP case into platform.c.
|
the LOGIN_CAP case into platform.c.
|
||||||
|
- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
|
||||||
|
platform.c
|
||||||
|
|
||||||
20101025
|
20101025
|
||||||
- (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
|
- (tim) [openbsd-compat/glob.h] Remove sys/cdefs.h include that came with
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: platform.c,v 1.9 2010/11/05 02:00:05 dtucker Exp $ */
|
/* $Id: platform.c,v 1.10 2010/11/05 02:07:25 dtucker Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Darren Tucker. All rights reserved.
|
* Copyright (c) 2006 Darren Tucker. All rights reserved.
|
||||||
|
@ -102,6 +102,12 @@ platform_setusercontext(struct passwd *pw)
|
||||||
void
|
void
|
||||||
platform_setusercontext_post_groups(struct passwd *pw)
|
platform_setusercontext_post_groups(struct passwd *pw)
|
||||||
{
|
{
|
||||||
|
#if !defined(HAVE_LOGIN_CAP) && defined(USE_LIBIAF)
|
||||||
|
if (set_id(pw->pw_name) != 0) {
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
# endif /* USE_LIBIAF */
|
||||||
|
|
||||||
#ifdef HAVE_SETPCRED
|
#ifdef HAVE_SETPCRED
|
||||||
/*
|
/*
|
||||||
* If we have a chroot directory, we set all creds except real
|
* If we have a chroot directory, we set all creds except real
|
||||||
|
|
|
@ -1516,11 +1516,6 @@ do_setusercontext(struct passwd *pw)
|
||||||
# ifdef _AIX
|
# ifdef _AIX
|
||||||
aix_usrinfo(pw);
|
aix_usrinfo(pw);
|
||||||
# endif /* _AIX */
|
# endif /* _AIX */
|
||||||
# ifdef USE_LIBIAF
|
|
||||||
if (set_id(pw->pw_name) != 0) {
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
# endif /* USE_LIBIAF */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
platform_setusercontext_post_groups(pw);
|
platform_setusercontext_post_groups(pw);
|
||||||
|
|
Loading…
Reference in New Issue