From d83c9af5c6a437ddaa9dd2747e83aee642501a44 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 22 Apr 2007 19:00:16 -0700 Subject: [PATCH] pack-objects: make generated packfile read-only Signed-off-by: Junio C Hamano --- builtin-pack-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.26.2