- (dtucker) [session.c] Also initialize creds to NULL for handing to

setpcred.
This commit is contained in:
Darren Tucker 2010-03-07 13:32:16 +11:00
parent c738e6c646
commit ac0c4c9c1d
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@
- (dtucker) [session.c] Bug #1567: move setpcred call to before chroot and - (dtucker) [session.c] Bug #1567: move setpcred call to before chroot and
do not set real uid, since that's needed for the chroot, and will be set do not set real uid, since that's needed for the chroot, and will be set
by permanently_set_uid. by permanently_set_uid.
- (dtucker) [session.c] Also initialize creds to NULL for handing to
setpcred.
20100305 20100305
- OpenBSD CVS Sync - OpenBSD CVS Sync

View File

@ -1537,7 +1537,7 @@ do_setusercontext(struct passwd *pw)
* chroot directory, we don't override anything. * chroot directory, we don't override anything.
*/ */
{ {
char **creds, *chroot_creds[] = char **creds = NULL, *chroot_creds[] =
{ "REAL_USER=root", NULL }; { "REAL_USER=root", NULL };
if (options.chroot_directory != NULL && if (options.chroot_directory != NULL &&