summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2005-06-17 21:52:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:20 -0500
commit3b0b5f628893c9e03ee483e30af849839b557f41 (patch)
treeeb502e7cc2bc0e4575c693cb1074250fbd070445
parentd8ea436754507f1222de5f5b5c05ac176401a77b (diff)
downloadsamba-3b0b5f628893c9e03ee483e30af849839b557f41.tar.gz
samba-3b0b5f628893c9e03ee483e30af849839b557f41.tar.bz2
samba-3b0b5f628893c9e03ee483e30af849839b557f41.zip
r7703: Fix the problem with MAP_PRIVATE not updating the file.
(This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7)
-rw-r--r--source3/utils/profiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 5b5cb7f07b..0830d6b74b 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -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;