projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02bab68
)
uClibc can't handle anonymous MAP_SHARED. Since we're treating it as
author
Rob Landley
<rob@landley.net>
Wed, 7 Dec 2005 22:45:28 +0000
(22:45 -0000)
committer
Rob Landley
<rob@landley.net>
Wed, 7 Dec 2005 22:45:28 +0000
(22:45 -0000)
read only data anyway, MAP_PRIVATE shouldn't make a major difference.
modutils/insmod.c
patch
|
blob
|
history
diff --git
a/modutils/insmod.c
b/modutils/insmod.c
index da149fe2b649e8a7ea6a17b074d2cd17c7a6bc32..bf96a5633da9d8d20e4be2cdfa1c7e21eeb9b121 100644
(file)
--- 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);
}