git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] config.mak.uname: OpenBSD uses BSD semantics with fread for directories

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Dec 2, 2018, 02:43 UTC
Message-ID
<20181202024320.65160-1-carenas@gmail.com>
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>
---
 config.mak.uname | 1 +
 1 file changed, 1 insertion(+)
diff --git a/config.mak.uname b/config.mak.uname
index 3ee7da0e23..378ca0a582 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -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
-- 
2.20.0.rc2
Next: Carlo Arenas
Message 1 of 2 in “config.mak.uname: OpenBSD uses BSD semantics with fread for directories”
  1. 1/2 config.mak.uname: OpenBSD uses BSD semantics with fread for directoriesCarlo Marcelo Arenas Belón, Dec 2, 2018
  2. Carlo ArenasDec 2, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.