mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
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.
This commit is contained in:
parent
02bab6869e
commit
07fffc5add
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user