www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/23/03:58:38

Date: Tue, 23 Feb 1999 10:56:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Mark E." <snowball3 AT usa DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: patches for chroot
In-Reply-To: <199902230504.FAA82404@out1.ibm.net>
Message-ID: <Pine.SUN.3.91.990223105500.13846H-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Tue, 23 Feb 1999, Mark E. wrote:

> chroot ("c:/djgpp")
> getcwd would then return '/bin' if the cwd is 'c:/djgpp/bin'.

Yes.

I think _fixpath should do that as well, to prevent confusion, and also 
to be compatible with Unix description that every call to chroot 
interprets its argument *relative to the previous root*.

If _fixpath is to remove the root, then you will need to change the way
chroot computes the full path name of the new root; a call to _fixpath 
won't be enough.

- Raw text -


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