Sender: nate AT cartsys DOT com Message-ID: <36DDA985.EB9AEACA@cartsys.com> Date: Wed, 03 Mar 1999 13:28:37 -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: chroot patches r3 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > On Mon, 1 Mar 1999, Mark E. wrote: > > /* Succeeds because 'c:/djgpp/bin' is relative to 'c:/djgpp'. > > Passing in '/bin' would have also worked. */ > > chroot("c:/djgpp/bin"); > > I'm not sure whether we need such a feature. I think Unix won't allow > it (can anybody please check this?). If I'm right, you can simply > require that an argument doesn't begin with a drive letter, unless the > current root is empty. Nope. After `chroot("/foo")', assuming /foo contains only a directory `bar', `chroot("/foo/bar")' fails with ENOENT. -- Nate Eldredge nate AT cartsys DOT com