Re: [ANNOUNCE] GIT 1.5.1.2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: <git@...>, <linux-kernel@...>, Randal L. Schwartz <merlyn@...>, Nicolas Pitre <nico@...>
Date: Sunday, April 22, 2007 - 2:47 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


Ok, to clarify the situation.

 * This breakage does not make v1.5.1.2 is a dud release, as what
   caused this is not contained in it.

 * A topic to update git-pack-objects has been cooking in 'next'
   and it graduated to 'master' last night after v1.5.1.2 was
   cut from 'maint'.  This series had a bug that left permission
   bits as set by mkstemp(); newer glibc leaves it as 0600.

 * I almost always run 'master' on kernel.org; I ran "git-repack
   -a -d" there using 'master' that contained the breakage.

 * git-repack lets git-pack-objects to create pack/idx, and then
   drops the write permission bits from them.  That is how they
   got 0400.

 * I've fixed the pack/idx 0444 manually at kernel.org; the
   repository has already mirrored out to git.kernel.org, so
   people should be able to fetch from there now.  alt-git.git
   at repo.or.cz should be usable as well, although I suspect
   the site did not even have this issue.

 * I sent a quickfix as a workaround.  Because we rely on
   git-repack to drop write permissions anyway, and some tests
   to plumbing expects the resulting files to be writable by the
   owner, tweaking 0444 in the quickfix to 0644 would be a good
   workaround to fix the problem -and- pass all the test.

So I'll push out a 0644 quickfix on 'master' shortly.

However.

 * To reiterate, people planning to update to v1.5.1.2 should
   not be alarmed with this gotcha.  That comes from the
   maintenance branch and is not affected by this breakage.

 * Letting mkstemp() to create the file and then forcing 0644 is
   not strictly correct, as it makes the files created by people
   with 007 umask readable to the general public.  The code
   before mkstemp() conversion was aware of this issue and used
   open(..., 0666) to let the user's umask applied, I think.

So while the quickfix is an improvement, it not a real fix X-<.


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] GIT 1.5.1.1, Junio C Hamano, (Wed Apr 11, 10:09 pm)
[ANNOUNCE] GIT 1.5.1.2, Junio C Hamano, (Sun Apr 22, 2:16 am)
Re: [ANNOUNCE] GIT 1.5.1.2, Linus Torvalds, (Sun Apr 22, 1:22 pm)
Re: [ANNOUNCE] GIT 1.5.1.2, Junio C Hamano, (Sun Apr 22, 2:47 pm)
Re: [ANNOUNCE] GIT 1.5.1.2, Junio C Hamano, (Sun Apr 22, 1:58 pm)
Today's 'master' leaves .idx/.pack in 0400, Junio C Hamano, (Sun Apr 22, 2:06 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Nicolas Pitre, (Sun Apr 22, 2:25 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Junio C Hamano, (Sun Apr 22, 2:27 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Nicolas Pitre, (Sun Apr 22, 2:34 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Linus Torvalds, (Sun Apr 22, 2:54 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Junio C Hamano, (Sun Apr 22, 3:03 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Junio C Hamano, (Sun Apr 22, 3:20 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Linus Torvalds, (Sun Apr 22, 3:29 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Nicolas Pitre, (Sun Apr 22, 2:47 pm)
Re: Today's 'master' leaves .idx/.pack in 0400, Junio C Hamano, (Sun Apr 22, 2:52 pm)