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

Re: Problem with git-push

From
Florent Thoumie <flz@xbsd.org>
Date
Nov 1, 2006, 22:54 UTC
Message-ID
<1162421693.93716.22.camel@localhost>
In-Reply-To
<7v8xiu3ksl.fsf@assigned-by-dhcp.cox.net>
On Wed, 2006-11-01 at 13:43 -0800, Junio C Hamano wrote:
Show 22 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
> 
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >
> >>> but more importantly, if the directory in question was created by 
> >>> somebody else, I do not think this chmod() would succeed even if you are 
> >>> in the same group as the owner (i.e. previous creator) of the directory.
> >>
> >> But if somebody else created it, it should already have the correct 
> >> permissions in the first place (unless the user played around with them, 
> >> which is not a pilot error, but a willfull pointing of the barrel in the 
> >> general direction of your knee).
> >
> > True; I think the yesterday's analysis is still incomplete.  I
> > haven't reached the point where I can explain "is a directory".
> > If the directory was there and mkdir() failed (but we do not
> > check its return value), it would have set errno to EEXIST not
> > to EISDIR.  There is something else going on.
> 
> Actually, Florent's said the directory permission was screwed up
> to begin with, so after following the code a bit more I can see
> why it said "is a directory".

I screwed the perms. I have a cron job that does automatic imports and it's running as root. I've been lured by the fact that it uses my name and email address to do those imports, so I thought it was running under my unprivileged account.

Florent
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 12 in “Problem with git-push”
  1. Florent ThoumieOct 31, 2006
  2. Junio C HamanoOct 31, 2006
  3. Johannes SchindelinNov 1, 2006
  4. Junio C HamanoNov 1, 2006
  5. Junio C HamanoNov 1, 2006
  6. Florent ThoumieNov 1, 2006
  7. Junio C HamanoNov 1, 2006
  8. Johannes SchindelinNov 2, 2006
  9. Junio C HamanoNov 1, 2006
  10. Johannes SchindelinNov 2, 2006
  11. Junio C HamanoNov 3, 2006
  12. Florent ThoumieNov 1, 2006

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.