mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r7703: Fix the problem with MAP_PRIVATE not updating the file.
(This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7)
This commit is contained in:
parent
d8ea436754
commit
3b0b5f6288
@ -610,7 +610,7 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
base = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
|
||||
base = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
#else
|
||||
base = (char *)-1;
|
||||
errno = ENOSYS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user