Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make "git-prune-script" take all refs into account.
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index 2354e8039b80af1645863b881068f0cf26134fe0..53f1da815bc2c23b25894663fa2cac17b08e64b2 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-198,7
+198,7
@@
int read_cache(void)
size = st.st_size;
errno = EINVAL;
if (size >= sizeof(struct cache_header) + 20)
- map = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
+ map = mmap(NULL, size, PROT_READ
| PROT_WRITE
, MAP_PRIVATE, fd, 0);
}
close(fd);
if (-1 == (int)(long)map)