]> granicus.if.org Git - jq/commit
jv_file.c: check to see if the file is a directory and fail
authorRoland C. Dowdeswell <roland.dowdeswell@twosigma.com>
Wed, 9 May 2018 04:39:11 +0000 (00:39 -0400)
committerNico Williams <nico@cryptonector.com>
Sat, 12 May 2018 00:32:25 +0000 (19:32 -0500)
commit90bc29c1b544c0436ec44246e180fdbb6d6384df
treed8c53a6402e50e2e2f15087bac88935fb13f6e44
parent7fd9e86ea694bcfc3cb8472d43c93626febd45cd
jv_file.c: check to see if the file is a directory and fail

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.
src/jv_file.c