config.mak.uname: OpenBSD uses BSD semantics with fread for directories
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 2 Dec 2018 02:43:20 +0000 (18:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Dec 2018 01:30:21 +0000 (10:30 +0900)
this "fixes" test 23 (proper error on directory "files") from t1308

MirBSD likely also affected but this was only tested with OpenBSD and
therefore this specific change only affects that platform

the optional 'configure' sets this automatically (tested with 6.1 to 6.4)
but considering this is a legacy feature it is likely that it affected
all old versions and is probably what most users had been using as a
workaround

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname
index e47af72e018fc36b35de16cd65d2742fb44d9dee..14077994a51fdb42e7c8f2b90c89946b70d10bb0 100644 (file)
@@ -233,6 +233,7 @@ ifeq ($(uname_S),OpenBSD)
        HAVE_BSD_SYSCTL = YesPlease
        HAVE_BSD_KERN_PROC_SYSCTL = YesPlease
        PROCFS_EXECUTABLE_PATH = /proc/curproc/file
+       FREAD_READS_DIRECTORIES = UnfortunatelyYes
 endif
 ifeq ($(uname_S),MirBSD)
        NO_STRCASESTR = YesPlease