1
0
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:
Richard Sharpe 2005-06-17 21:52:58 +00:00 committed by Gerald (Jerry) Carter
parent 9c36eef346
commit 55038d9318

View File

@ -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;