From: Jeff King Date: Thu, 11 Apr 2013 22:23:01 GMT Subject: Re: regression: "96b9e0e3 config: treat user and xdg config permission problems as errors" busted git-daemon Message-ID: <20130411222301.GA11283@sigill.intra.peff.net> In-Reply-To: <7vip3shfpd.fsf@alter.siamese.dyndns.org> On Thu, Apr 11, 2013 at 03:20:46PM -0700, Junio C Hamano wrote: > "W. Trevor King" writes: > > > As one of the less experienced folks tripped up by this issue, I think > > that setting HOME explicitly before invoking the daemon is simple > > enough (which is why I just fixed my invocation and didn't post to the > > list). > > Sounds like we need a documentation update somewhere. Yeah, I'd be happy to drop my patch if somebody wants to write a documentation update instead. > > The difficulty was figuring out why the daemon was dying in > > the first place (which involved bisection for me as well). Maybe > > there could be an additional note about HOME to flesh out: > > > > fatal: unable to access '/root/.config/git/config': Permission denied > > > > when there's an EACCES error for the per-user config? > > Doesn't access_or_die() say > > die_errno(_("unable to access '%s'"), path); > > already? I am puzzled... I think the point is that it could add ...and I was looking in /root, because that is where your HOME points. Shouldn't you be able to read your own HOME directory? which should make it painfully obvious to the user what is going on. -Peff