From: Nguyễn Thái Ngọc Duy Date: Wed, 3 May 2017 10:16:48 +0000 (+0700) Subject: config.mak.uname: set FREAD_READS_DIRECTORIES for Linux and FreeBSD X-Git-Tag: v2.14.0-rc0~95^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e2d90fd1c33ae57e4a6da5729ae53876107b3463?hp=e2d90fd1c33ae57e4a6da5729ae53876107b3463 config.mak.uname: set FREAD_READS_DIRECTORIES for Linux and FreeBSD This variable is added [1] with the assumption that on a sane system, fopen(, "r") should return NULL. Linux and FreeBSD do not meet this expectation while at least Windows and AIX do. Let's make sure they behave the same way. I only tested one version on Linux (4.7.0 with glibc 2.22) and FreeBSD (11.0) but since GNU/kFreeBSD is fbsd kernel with gnu userspace, I'm pretty sure it shares the same problem. [1] cba22528fa (Add compat/fopen.c which returns NULL on attempt to open directory - 2008-02-08) Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---