From 3b0b5f628893c9e03ee483e30af849839b557f41 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Fri, 17 Jun 2005 21:52:58 +0000 Subject: r7703: Fix the problem with MAP_PRIVATE not updating the file. (This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7) --- source3/utils/profiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit