Subject: | abs_path fails if cwd is not readable |
Cwd::abs_path will fail if the current working directory is not readable.
The bsd_realpath function in Cwd.xs will try to open the current working directory for reading (if HAS_FCHDIR is set), which must obviously fail.
At least, this faulty code is completely unnecessary! The non fchdir variant (using getcwd) will work fine.
So please completely remove this nasty "HAS_FCHDIR" stuff, this will fix the bug.