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 | Update tests not to assume that generated packfiles are writable. (diff) | |
download | tgif-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.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", |