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

Re: git-daemon: needs /root/.config/git/config?

From
Jeff King <peff@peff.net>
Date
Jun 5, 2013, 15:43 UTC
Message-ID
<20130605154344.GA8664@sigill.intra.peff.net>
In-Reply-To
<20130605111918.GE22308@pomac.netswarm.net>
On Wed, Jun 05, 2013 at 01:19:18PM +0200, Ian Kumlien wrote:
Show 8 quoted lines
> > Older versions of git silently ignored errors reading config files, but
> > it was tightened in v1.8.1.1, as there can be quite serious implications
> > to failing to read expected config (e.g., imagine transfer.fsckobjects,
> > or receive.deny* is ignored).
> 
> Yes, i agree, it's suboptimal but I for one would use getpwuid to get
> the home directory of the executing user to avoid this - though i don't
> know how portable it is (or if there is any other issues)
We considered having git-daemon's "--user" option do that, but:
  1. It would be a regression for people who are intentionally setting
     HOME to get different config profiles. And it would be a surprise
     to admins, as other user-switching daemons (e.g., inetd) do not
     tweak HOME.
  2. It would not have covered all cases, including yours. xinetd is the
     one doing the user-switching here.
-Peff
Previous: Andreas KreyNext: Bernhard R. Link
Message 10 of 12 in “git-daemon: needs /root/.config/git/config?”
  1. Ian KumlienJun 4, 2013
  2. Jeff KingJun 4, 2013
  3. Johannes SixtJun 4, 2013
  4. Jonathan NiederJun 4, 2013
  5. Junio C HamanoJun 4, 2013
  6. Jeff KingJun 4, 2013
  7. Junio C HamanoJun 4, 2013
  8. Ian KumlienJun 5, 2013
  9. Andreas KreyJun 5, 2013
  10. Jeff KingJun 5, 2013
  11. Bernhard R. LinkJun 9, 2013
  12. Ian KumlienJun 10, 2013

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.