Sender: nate AT cartsys DOT com Message-ID: <36D3287A.B400FF70@cartsys.com> Date: Tue, 23 Feb 1999 14:15:22 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586) MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: patches for chroot References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > On Tue, 23 Feb 1999, Mark E. wrote: > > > > be compatible with Unix description that every call to chroot interprets > > > its argument *relative to the previous root*. > > > > This is mentioned in the descriptions I found for the chroot command, > > but not in the descriptions (for HPUX & Minux) for the chroot function. > > Can somebody with acces to Unix/Linux compile a trivial test program and > see whether this is true for the function as well? On Linux 2.2.1, it is. `chroot("/foo"); chroot("/bar")' == `chroot("/foo/bar")'. This stands to reason, too, since AFAIK `chroot' is intended to be a trapdoor; once in the jail you cannot escape. -- Nate Eldredge nate AT cartsys DOT com