Use git_mkstemp_mode instead of plain mkstemp to create object files
commit5256b006312e4d06e11b49a8b128e9e550e54f31
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Mon, 22 Feb 2010 22:32:16 +0000 (22 23:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2010 23:24:46 +0000 (22 15:24 -0800)
tree8a5199809ff55cf7daf82be320ef54c8025c4dd2
parent1d9740cb324f7f5d798ecfc259dc213b244ad9b7
Use git_mkstemp_mode instead of plain mkstemp to create object files

We used to unnecessarily give the read permission to group and others,
regardless of the umask, which isn't serious because the objects are
still protected by their containing directory, but isn't necessary
either.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
t/t1304-default-acl.sh