Message-Id: <199902251639.QAA126942@out2.ibm.net> From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Thu, 25 Feb 1999 11:39:20 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: updated chroot References: <199902250602 DOT GAA34258 AT out1 DOT ibm DOT net> In-reply-to: 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/