index 87fc7b0387b818001fb0e53fdb713fe1bad4f822..bdde65f75c9d2a9b77e6bf290ebed57f12c8e70b 100644 (file)
--- a/index.c
+++ b/index.c
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)