diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-08-23 15:47:08 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-08-26 18:00:10 -0700 |
commit | 17f7bde2f730723f6edae66b454afba481595bb0 (patch) | |
tree | 53d7407f2325965b737fdf30ead64107fe772154 /src/unix | |
parent | 2b175ca972f2531e5ef46d24abeb831d90033a33 (diff) | |
download | libgit2-17f7bde2f730723f6edae66b454afba481595bb0.tar.gz |
posix: Always set a default mapping mode
Diffstat (limited to 'src/unix')
-rw-r--r-- | src/unix/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index 9dcae5845..ee7888c17 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -31,6 +31,8 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs mflag = MAP_SHARED; else if ((flags & GIT_MAP_TYPE) == GIT_MAP_PRIVATE) mflag = MAP_PRIVATE; + else + mflag = MAP_SHARED; out->data = mmap(NULL, len, mprot, mflag, fd, offset); |