| www.delorie.com/archives/browse.cgi | search |
| Message-Id: | <199902230504.FAA82404@out1.ibm.net> |
| From: | "Mark E." <snowball3 AT usa DOT net> |
| To: | djgpp-workers AT delorie DOT com |
| Date: | Tue, 23 Feb 1999 00:05:09 -0500 |
| MIME-Version: | 1.0 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |