svn commit: samba r7703 - in branches/SAMBA_3_0/source/utils: .

sharpe at samba.org sharpe at samba.org
Fri Jun 17 21:52:59 GMT 2005


Author: sharpe
Date: 2005-06-17 21:52:58 +0000 (Fri, 17 Jun 2005)
New Revision: 7703

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7703

Log:

Fix the problem with MAP_PRIVATE not updating the file.


Modified:
   branches/SAMBA_3_0/source/utils/profiles.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/profiles.c
===================================================================
--- branches/SAMBA_3_0/source/utils/profiles.c	2005-06-17 21:40:42 UTC (rev 7702)
+++ branches/SAMBA_3_0/source/utils/profiles.c	2005-06-17 21:52:58 UTC (rev 7703)
@@ -610,7 +610,7 @@
    */
 
 #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;



More information about the samba-cvs mailing list