@matheusbsbs / matheus-bagliano / commits / d83c9af5c6
Fork 0

pack-objects: make generated packfile read-only

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 22, 2007 at 19:00 UTC d83c9af5c6a437ddaa9dd2747e83aee642501a44
1 file changed +1 -1
builtin-pack-objects.c
+1 -1
@@ -1790,7 +1790,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
1790 mode_t mode = umask(0);
1791
1792 umask(mode);
1793 - mode = 0666 & ~mode;
1793 + mode = 0444 & ~mode;
1794
1795 write_index_file(last_obj_offset, object_list_sha1);
1796 snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",