From f8d839ad992d92e1e31d7a557c198371d1fb7692 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 1 Oct 2005 11:58:43 -0700 Subject: Honor user's umask. Fix the last two holdouts that forced mode bits stricter than the user's umask. Noticed by Wolfgang Denk and fixed by Linus. [jc: applied the same fix to mailsplit just for the sake of consistency.] Signed-off-by: Junio C Hamano --- index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.c') diff --git a/index.c b/index.c index 87fc7b038..bdde65f75 100644 --- a/index.c +++ b/index.c @@ -29,7 +29,7 @@ int hold_index_file_for_update(struct cache_file *cf, const char *path) signal(SIGINT, remove_lock_file_on_signal); atexit(remove_lock_file); } - return open(cf->lockfile, O_RDWR | O_CREAT | O_EXCL, 0600); + return open(cf->lockfile, O_RDWR | O_CREAT | O_EXCL, 0666); } int commit_index_file(struct cache_file *cf) -- cgit v1.2.1