mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
r7703: Fix the problem with MAP_PRIVATE not updating the file.
This commit is contained in:
parent
9c36eef346
commit
55038d9318
@ -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