From: Junio C Hamano Date: Mon, 23 Apr 2007 02:00:16 +0000 (-0700) Subject: pack-objects: make generated packfile read-only X-Git-Tag: v1.5.2-rc0~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d83c9af5c6a437ddaa9dd2747e83aee642501a44;p=git.git pack-objects: make generated packfile read-only Signed-off-by: Junio C Hamano --- diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 34350bf32..50fc37fa0 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1790,7 +1790,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) mode_t mode = umask(0); umask(mode); - mode = 0666 & ~mode; + mode = 0444 & ~mode; write_index_file(last_obj_offset, object_list_sha1); snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",