diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-29 03:28:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-29 03:28:14 +0000 |
commit | ae4694243d9e5502382bd5f1b3e8ac3397c47f21 (patch) | |
tree | fcf17324cdd69489d6a2b29e05ef0a6b7465c5e6 /libs/lmo | |
parent | aded4e0a06988beadd9ea17b8ef312126212d54d (diff) |
libs/lmo: jffs2 does not support mmap() with MAP_SHARED, use MAP_PRIVATE instead (#76)
Diffstat (limited to 'libs/lmo')
-rw-r--r-- | libs/lmo/src/lmo_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lmo/src/lmo_core.c b/libs/lmo/src/lmo_core.c index b3cb7c098..0754d0dc5 100644 --- a/libs/lmo/src/lmo_core.c +++ b/libs/lmo/src/lmo_core.c @@ -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; |