svn commit: trunk/busybox/modutils

landley at busybox.net landley at busybox.net
Wed Dec 7 22:45:34 UTC 2005


Author: landley
Date: 2005-12-07 14:45:28 -0800 (Wed, 07 Dec 2005)
New Revision: 12711

Log:
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.


Modified:
   trunk/busybox/modutils/insmod.c


Changeset:
Modified: trunk/busybox/modutils/insmod.c
===================================================================
--- trunk/busybox/modutils/insmod.c	2005-12-07 16:09:49 UTC (rev 12710)
+++ trunk/busybox/modutils/insmod.c	2005-12-07 22:45:28 UTC (rev 12711)
@@ -4128,7 +4128,7 @@
 
 	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);
 	}




More information about the busybox-cvs mailing list