Mail Archives: djgpp-workers/1999/03/14/03:49:11
On Fri, 12 Mar 1999, DJ Delorie wrote:
> Please, someone remind me why djgpp needs chroot.
It began when Alain Magloire said that inetutils need that (e.g., so
that the ftp client would not be able to access files outside ~ftp).
It is also a handy way to implement the DJGPP-specific Bash feature
whereby setting SYSROOT=c:/foo/bar/djgpp will cause hard-coded paths
like /bin/rm to magically work.
In the port of Bash 1.14.7, this feature requires Bash itself to
convert the file names back to their normal full form, since the
programs run by Bash don't know about SYSROOT. And Bash has hard time
doing this correctly, because /bin/rm might not be a pathname, but a
string (e.g. in a Sed script). Supporting this automatically in the
library is much better (IMHO).
- Raw text -