Am 30.12.2016 um 23:06 schrieb brian d foy (via RT):
I don't know why it insists that the directory be writable, expecially
when chdir itself is not as strict. I often change to a directory where
I want to merely read files, so I'd like to see the test relaxed.
If you go by Posix logic, indir and chdir need just searchability (the x
permission), i.e. the ability to access a file with a given name.
Readability (r) is for getting a list of all files.
Unless there is a reason for requiring readability for chdir or indir, I
think that neither should even do any additional checking; just let them
call the Posix function and see what error codes are returned.
The usual reason would be portability, but at least Windows follows the
Posix path in this regard.