]> git.ipfire.org Git - thirdparty/git.git/commit - config.mak.uname
config.mak.uname: set FREAD_READS_DIRECTORIES for Linux and FreeBSD
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 3 May 2017 10:16:48 +0000 (17:16 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:55 +0000 (12:33 +0900)
commite2d90fd1c33ae57e4a6da5729ae53876107b3463
tree791930780c62dfb945dd262f1a2c2692d3f9a68e
parent02912f477586befaf46e0db4f7c47b52081d5b6d
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(<dir>, "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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname
t/t1308-config-set.sh