Re: coreutils-6.0 on platforms without fchdir

2006-09-02 Thread Bruno Haible
Paul Eggert wrote: > On platforms lacking fchdir, > put a wrapper around 'open' so that we can keep track of which file > descriptors correspond to directories. The 'open' wrapper puts the > name of the opened directory into a hash table. (The name must be > absolute, so 'open' may need to do the

Re: coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > Thanks for working on it, but I think we'd prefer a solution that > doesn't require the maintainer having to think about obsolete > platforms that lack fchdir. > > How about the following idea instead? On platforms lacking fchdir, > put a wrapper around 'op

Re: coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Paul Eggert
Thanks for working on it, but I think we'd prefer a solution that doesn't require the maintainer having to think about obsolete platforms that lack fchdir. How about the following idea instead? On platforms lacking fchdir, put a wrapper around 'open' so that we can keep track of which file descri

coreutils-6.0 on platforms without fchdir

2006-09-01 Thread Bruno Haible
While compiling on BeOS, a more difficult problem shows up in the testsuite: recursive "chown -R ..." and recursive removals "rm -r ..." fail with error message "Function not implemented" (= strerror(ENOSYS)). The reason: BeOS doesn't have an fchdir() function, nor fdopendir(), nor a /proc filesys