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

1 messages from 2022-12-17 to 2022-12-17. Participants: rsbecker@nexbridge.com.
Thread: https://gitlist.dev/t/58969

## rsbecker@nexbridge.com, 2022-12-17 01:31

Subject: [Possible Bug] config --system fails when ./etc does not exist
Message-ID: <007a01d911b7$4125bd60$c3713820$@nexbridge.com>
URL: https://gitlist.dev/e/007a01d911b7%244125bd60%24c3713820%24%40nexbridge.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


```
