delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/03/16:28:37

Sender: nate AT cartsys DOT com
Message-ID: <36DDA985.EB9AEACA@cartsys.com>
Date: Wed, 03 Mar 1999 13:28:37 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 990303182855 DOT 18749A-100000 AT is>
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

- Raw text -


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