diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-22 19:00:16 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-22 19:00:16 -0700 |
commit | d83c9af5c6a437ddaa9dd2747e83aee642501a44 (patch) | |
tree | 7020d0ef40a05cd5f0e58aa973ea2136ae278183 /builtin-pack-objects.c | |
parent | a5878961b14c1b4f6d1d08c0d3a2f5234659fb8a (diff) | |
download | git-d83c9af5c6a437ddaa9dd2747e83aee642501a44.tar.gz |
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.c | 2 |
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", |