summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorMike Frysinger2006-01-04 07:31:19 +0000
committerMike Frysinger2006-01-04 07:31:19 +0000
commit5990efb7957818427d865dc13f28b87b7ff27508 (patch)
tree85fcd243050f88a50d86e3a5884e9c12b123c8a2 /util-linux
parentb92405552fc93404ae4e5c705bf30417dd432d6c (diff)
downloadbusybox-5990efb7957818427d865dc13f28b87b7ff27508.zip
busybox-5990efb7957818427d865dc13f28b87b7ff27508.tar.gz
use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 830939b..d414c0c 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -68,7 +68,7 @@ static void make_device(char *path)
/* mmap the config file */
if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) {
len=lseek(fd,0,SEEK_END);
- conf=mmap(NULL,len,PROT_READ,MAP_SHARED,fd,0);
+ conf=mmap(NULL,len,PROT_READ,MAP_PRIVATE,fd,0);
if (conf) {
int line=0;