luci-0.9: merge r5162

This commit is contained in:
Jo-Philipp Wich 2009-07-29 03:30:07 +00:00
parent 0764c67993
commit ad8c39598e

View file

@ -132,7 +132,7 @@ lmo_archive_t * lmo_open(const char *file)
goto cleanup;
}
if( (ar->mmap = mmap(NULL, ar->length, PROT_READ, MAP_SHARED, ar->fd, 0)) == MAP_FAILED )
if( (ar->mmap = mmap(NULL, ar->length, PROT_READ, MAP_PRIVATE, ar->fd, 0)) == MAP_FAILED )
{
error("Failed to memory map archive contents", 1);
goto cleanup;