r7703: Fix the problem with MAP_PRIVATE not updating the file.
authorRichard Sharpe <sharpe@samba.org>
Fri, 17 Jun 2005 21:52:58 +0000 (21:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:57:20 +0000 (10:57 -0500)
(This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7)

source3/utils/profiles.c

index 5b5cb7f07b2f71effeb0ece9c62fd98c3fef93be..0830d6b74b058be85614ab0b21d66071e91636f4 100644 (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;