Skip to content

Commit

Permalink
pack-objects: make generated packfile read-only
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Apr 23, 2007
1 parent a587896 commit d83c9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d83c9af

Please sign in to comment.