summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-04-22 19:00:16 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-04-22 19:00:16 -0700
commitd83c9af5c6a437ddaa9dd2747e83aee642501a44 (patch)
tree7020d0ef40a05cd5f0e58aa973ea2136ae278183 /builtin-pack-objects.c
parentUpdate tests not to assume that generated packfiles are writable. (diff)
downloadtgif-d83c9af5c6a437ddaa9dd2747e83aee642501a44.tar.xz
pack-objects: make generated packfile read-only
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 34350bf322..50fc37fa0f 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",