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

Re: [PATCH] config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/Hurd

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 22, 2020, 16:41 UTC
Message-ID
<20200422164150.GA140314@google.com>
In-Reply-To
<20200422153347.40018-1-jrtc27@jrtc27.com>
Jessica Clarke wrote:
Show 10 quoted lines
> GNU/Hurd is another platform that behaves like this. Set it to
> UnfortunatelyYes so that config directory files are correctly processed.
> This fixes the corresponding 'proper error on directory "files"' test in
> t1308-config-set.sh.
>
> Thanks-to: Jeff King <peff@peff.net>
> Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
> ---
>  config.mak.uname | 1 +
>  1 file changed, 1 insertion(+)
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks.
Show 10 quoted lines
> diff --git a/config.mak.uname b/config.mak.uname
> index 0ab8e00938..3e526f6b9f 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -308,6 +308,7 @@ ifeq ($(uname_S),GNU)
>  	NO_STRLCPY = YesPlease
>  	HAVE_PATHS_H = YesPlease
>  	LIBC_CONTAINS_LIBINTL = YesPlease
> +	FREAD_READS_DIRECTORIES = UnfortunatelyYes
>  endif

I wonder why we set up this knob this way. A lot of operating systems support fopen(..., "r") of a directory --- wouldn't it make sense for FREAD_READS_DIRECTORIES to be the default and for users on stricter platforms to be able to set FREAD_DOES_NOT_READ_DIRECTORIES if they want to speed Git up by taking advantage of their saner fread?

Thanks, Jonathan

Previous: Jessica ClarkeNext: Junio C Hamano
Message 2 of 12 in “config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/Hurd”
  1. config.mak.uname: Define FREAD_READS_DIRECTORIES for GNU/HurdJessica Clarke, Apr 22, 2020
  2. Jonathan NiederApr 22, 2020
  3. Junio C HamanoApr 22, 2020
  4. Brandon CaseyApr 22, 2020
  5. Jessica ClarkeApr 22, 2020
  6. Brandon CaseyApr 22, 2020
  7. Brandon CaseyApr 22, 2020
  8. Brandon CaseyApr 22, 2020
  9. Jeff KingApr 22, 2020
  10. Brandon CaseyApr 22, 2020
  11. Jeff KingApr 24, 2020
  12. Junio C HamanoApr 22, 2020

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.