mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 02:36:11 +00:00
posix: Always set a default mapping mode
This commit is contained in:
parent
2b175ca972
commit
17f7bde2f7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user