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

[Possible Bug] config --system fails when ./etc does not exist

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Dec 17, 2022, 01:31 UTC
Message-ID
<007a01d911b7$4125bd60$c3713820$@nexbridge.com>

On an initial install, the ./etc directory does not exist where git is installed. This causes git config --system to fail because the ./etc/config file cannot be created because of ENOENT. Is this deliberately intended for a specific security concern or would a patch to automatically create ./etc if it the directory does not exist be desired? It would need a stat("./etc".) call prior to attempting to create the ./etc/config file, with appropriate knobs, of course. If the build assumes the use of /etc instead of ./etc inside /usr/local, we probably do not want to do this.

Curiously, Randall

Message 1 of 1 in “[Possible Bug] config --system fails when ./etc does not exist”
  1. rsbecker@nexbridge.comDec 17, 2022

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.