www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/25/11:39:11.1

Message-Id: <199902251639.QAA126942@out2.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Thu, 25 Feb 1999 11:39:20 -0500
MIME-Version: 1.0
Subject: Re: updated chroot
References: <199902250602 DOT GAA34258 AT out1 DOT ibm DOT net>
In-reply-to: <Pine.SUN.3.91.990225150526.19118A-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

> >   {
> >     /* If the path returned from _fixpath isn't relative
> >        to __djgpp_root, then the path is rejected. */
> >     if (__djgpp_root_len != 0 && *buf != '/')
> I don't see this restriction in the man pages I can access.  It seems that
> a relative path is allowed.

Here I'm saying paths must be relative to the previous root, which is 
__djgpp_root. BTW, how many underscores should I be using?

> What about fchroot?  It seems like in your implementation, all it
> needs to do is to ignore its argument, momentarily set __chroot_flags to
> disable Unix emulation, call chroot with an empty argument, restore the
> flags, and return.
> 

That would work. From what you said previously about making fchroot 
work, I take it there's currently no way set the root path based on a file 
handle? 

Mark

--- 
Mark Elbrecht
snowball3 AT usa DOT net http://members.xoom.com/snowball3/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019