jv_file.c: check to see if the file is a directory and fail
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Not all stdio implementations disallow one to open a directory with fopen(3) and so we specifically check for directories as it is also in the standard search path.
authored by Roland C. Dowdeswell · committed by Nico Williams · parent 7fd9e86 · Browse files · 1 file+18 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+18 added−1 removed
- other:+18 added−1 removed