diff options
author | Rob Landley <rob@landley.net> | 2005-12-08 01:45:28 +0300 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-12-08 01:45:28 +0300 |
commit | 07fffc5add7adf36e7a3cdf626ef4c28b81f404c (patch) | |
tree | 88437c0ba67348683cdacadf493bd6a6bf211cad /modutils | |
parent | 02bab6869e274ab643b8e370f4e3f14cdc5edbaf (diff) |
uClibc can't handle anonymous MAP_SHARED. Since we're treating it as
read only data anyway, MAP_PRIVATE shouldn't make a major difference.
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index da149fe2b..bf96a5633 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -4128,7 +4128,7 @@ extern int insmod_ng_main( int argc, char **argv) fstat(fd, &st); len = st.st_size; - map = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0); + map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); if (map == MAP_FAILED) { bb_perror_msg_and_die("cannot mmap `%s'", filename); } |