libs/lmo: jffs2 does not support mmap() with MAP_SHARED, use MAP_PRIVATE instead (#76)

This commit is contained in:
Jo-Philipp Wich 2009-07-29 03:28:14 +00:00
parent aded4e0a06
commit ae4694243d

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;