login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
April
»
22
Re: Today's 'master' leaves .idx/.pack in 0400
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Junio C Hamano <junkio@...>
To: Linus Torvalds <torvalds@...>
Cc: Nicolas Pitre <nico@...>, <git@...>, <linux-kernel@...>
Subject:
Re: Today's 'master' leaves .idx/.pack in 0400
Date: Sunday, April 22, 2007 - 3:03 pm
Linus Torvalds <torvalds@linux-foundation.org> writes:
quoted text
> On Sun, 22 Apr 2007, Nicolas Pitre wrote: >> >> Well, actually there is no point making pack files writable. If they're >> modified, they get corrupted. >> >> Here's the fix I wanted to propose: >> >> diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c >> index c72e07a..85c6e6e 100644 >> --- a/builtin-pack-objects.c >> +++ b/builtin-pack-objects.c >> @@ -1786,11 +1786,13 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) >> if (rename(pack_tmp_name, tmpname)) >> die("unable to rename temporary pack file: %s", >> strerror(errno)); >> + chmod(tmpname, 0444); > > I think this is wrong (as is Junio's). I think we should still honor the > repository permission setting, and default to honoring umask. > > So I think that if the user has a umask that says "nobody else can read", > then we should *not* make it world readable (unless the > "shared_repository" thing is set to override it, of course).
I obviously agree, but as a tentative measure, I'll push out 0644 version anyway. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Peter Zijlstra
[RFC][PATCH 7/7] lockdep: spin_lock_nest_lock()
Gabriel C
Re: 2.6.24-rc2-mm1
Andrew Morton
Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
Jiri Kosina
Re: 2.6.21-rc5-mm4
git
:
linux-netdev
:
Gregory Haskins
[RFC PATCH 00/17] virtual-bus
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
997 guests
online.
Online users
zeekec
Syndicate