aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-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 830939b92..d414c0c10 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -68,7 +68,7 @@ static void make_device(char *path)
68 /* mmap the config file */ 68 /* mmap the config file */
69 if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) { 69 if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) {
70 len=lseek(fd,0,SEEK_END); 70 len=lseek(fd,0,SEEK_END);
71 conf=mmap(NULL,len,PROT_READ,MAP_SHARED,fd,0); 71 conf=mmap(NULL,len,PROT_READ,MAP_PRIVATE,fd,0);
72 if (conf) { 72 if (conf) {
73 int line=0; 73 int line=0;
74 74