Re: Today's 'master' leaves .idx/.pack in 0400

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: Nicolas Pitre <nico@...>, <git@...>, <linux-kernel@...>
Date: Sunday, April 22, 2007 - 3:29 pm

On Sun, 22 Apr 2007, Junio C Hamano wrote:

Looks good, but..


I would really suggest just defaulting to

	mode = 0444 & ~mode;

since there simply is never any reason to allow a writable pack-file.

The fact that we have some tests that try to corrupt a pack-file is not 
really a reason. Just make them do "chmod +w" before corrupting it.

But your patch is an obvious improvement regardless, so I certainly don't 
think this is a *big* issue.

		Linus
-
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)