From 9464ba6fb34bb42eb3501ec3c5143662e75674bf Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Mon, 20 Jan 2014 17:59:28 -0800 Subject: - (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced with sftp chroot support. Move set_id call after chroot. --- platform.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'platform.c') diff --git a/platform.c b/platform.c index 6d896c22..30fc6090 100644 --- a/platform.c +++ b/platform.c @@ -1,4 +1,4 @@ -/* $Id: platform.c,v 1.20 2013/09/22 09:02:40 dtucker Exp $ */ +/* $Id: platform.c,v 1.21 2014/01/21 01:59:29 tim Exp $ */ /* * Copyright (c) 2006 Darren Tucker. All rights reserved. @@ -164,12 +164,6 @@ platform_setusercontext_post_groups(struct passwd *pw) aix_usrinfo(pw); #endif /* _AIX */ -#if !defined(HAVE_LOGIN_CAP) && defined(USE_LIBIAF) - if (set_id(pw->pw_name) != 0) { - exit(1); - } -# endif /* USE_LIBIAF */ - #ifdef HAVE_SETPCRED /* * If we have a chroot directory, we set all creds except real -- cgit v1.2.1