Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Refuse a config directory before reading it
Git's build swaps in an fopen that refuses a directory, but only where it defines FREAD_READS_DIRECTORIES, and not every system's build does. There a directory opened, and only a failed read(2) reported it. POSIX leaves that failure to the system, and one that read the raw entries would have parsed them as settings.
Diffstat (limited to 'source')
-rw-r--r--source/config.c8
1 file changed, 7 insertions, 1 deletion