Date: Tue, 23 Feb 1999 10:56:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Mark E." cc: djgpp-workers AT delorie DOT com Subject: Re: patches for chroot In-Reply-To: <199902230504.FAA82404@out1.ibm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.