diff options
author | Junio C Hamano <junkio@cox.net> | 2005-10-01 11:58:43 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-01 11:58:43 -0700 |
commit | f8d839ad992d92e1e31d7a557c198371d1fb7692 (patch) | |
tree | 18425275f360765ee15285c2be48f46a52d68abc /index.c | |
parent | 1fea629f794cda57cc161979dab903ec7460cc7c (diff) | |
download | git-f8d839ad992d92e1e31d7a557c198371d1fb7692.tar.gz git-f8d839ad992d92e1e31d7a557c198371d1fb7692.tar.xz |
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 <junkio@cox.net>
Diffstat (limited to 'index.c')
-rw-r--r-- | index.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |