threads / bug / 58969

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

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

## tl;dr

One message between Dec 17, 2022 and Dec 17, 2022.

replies: 0people: 1as markdown or json

rsbecker@nexbridge.com· Dec 17, 2022, 01:31 UTC · lore

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

← back to recent threads