- (dtucker) [session.c] Also initialize creds to NULL for handing to
setpcred.
This commit is contained in:
parent
c738e6c646
commit
ac0c4c9c1d
|
@ -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
|
||||||
|
|
|
@ -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 &&
|
||||||
|
|
Loading…
Reference in New Issue