diff options
author | Tim Rice <tim@multitalents.net> | 2014-01-20 17:59:28 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2014-01-20 17:59:28 -0800 |
commit | 9464ba6fb34bb42eb3501ec3c5143662e75674bf (patch) | |
tree | 22e065163b64b0eb5ca196f55f3499a3049ca6e9 /platform.c | |
parent | a6d573caa14d490e6c42fb991bcb5c6860ec704b (diff) |
- (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced
with sftp chroot support. Move set_id call after chroot.
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/platform.c b/platform.c index 6d896c229..30fc60909 100644 --- a/platform.c +++ b/platform.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: platform.c,v 1.20 2013/09/22 09:02:40 dtucker Exp $ */ | 1 | /* $Id: platform.c,v 1.21 2014/01/21 01:59:29 tim Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. | 4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. |
@@ -164,12 +164,6 @@ platform_setusercontext_post_groups(struct passwd *pw) | |||
164 | aix_usrinfo(pw); | 164 | aix_usrinfo(pw); |
165 | #endif /* _AIX */ | 165 | #endif /* _AIX */ |
166 | 166 | ||
167 | #if !defined(HAVE_LOGIN_CAP) && defined(USE_LIBIAF) | ||
168 | if (set_id(pw->pw_name) != 0) { | ||
169 | exit(1); | ||
170 | } | ||
171 | # endif /* USE_LIBIAF */ | ||
172 | |||
173 | #ifdef HAVE_SETPCRED | 167 | #ifdef HAVE_SETPCRED |
174 | /* | 168 | /* |
175 | * If we have a chroot directory, we set all creds except real | 169 | * If we have a chroot directory, we set all creds except real |