From 07fffc5add7adf36e7a3cdf626ef4c28b81f404c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 7 Dec 2005 22:45:28 +0000 Subject: [PATCH] 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. --- modutils/insmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }