X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=index.c;h=bdde65f75c9d2a9b77e6bf290ebed57f12c8e70b;hb=7ee74a99b2b710b5f5adc22db2fe0aca8a74c809;hp=87fc7b0387b818001fb0e53fdb713fe1bad4f822;hpb=379955c696a417f0fb6118f2fd91dbffd2816ad1;p=git.git diff --git a/index.c b/index.c index 87fc7b03..bdde65f7 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)