git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Possible Bug] config --system fails when ./etc does not exist
@ 2022-12-17  1:31 rsbecker
  0 siblings, 0 replies; only message in thread
From: rsbecker @ 2022-12-17  1:31 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-17  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-17  1:31 [Possible Bug] config --system fails when ./etc does not exist rsbecker

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).