Message-Id: <199902230504.FAA82404@out1.ibm.net> From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Tue, 23 Feb 1999 00:05:09 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: patches for chroot In-reply-to: <199902222336.SAA01575@envy.delorie.com> References: <199902222318 DOT XAA128862 AT out5 DOT ibm DOT net> (snowball3 AT usa DOT net) X-mailer: Pegasus Mail for Win32 (v3.01d) Reply-To: djgpp-workers AT delorie DOT com > > What about getcwd()? > So the string returned by getcwd should be adjusted if it is in the directory tree set by chroot like below? chroot ("c:/djgpp") getcwd would then return '/bin' if the cwd is 'c:/djgpp/bin'. Mark --- Mark Elbrecht snowball3 AT usa DOT net http://members.xoom.com/snowball3/