Re: [PATCH] Restore umasks influence on the permissions of work tree created by clone
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 9, 2012, 23:18 UTC
- Message-ID
- <7vwr2cikwa.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7v1ukkjzyz.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Jeff King <peff@peff.net> writes: > >> Does the mkdir of "rr-cache/*" in rerere.c make the same mistake? The >> rr-cache root is made with 0777, and the files inside each subdirectory >> are created with 0666. So it is the only thing preventing users of >> shared repos from using rerere. > > Quite possibly yes. I do not recall tightening permissions on > purpose, and it was a long time ago ;-)
Yup, that's the last remaining "mkdir(.*, 755)" in the codebase, and it should be trivial to replace it with mkdir_in_gitdir() or something.