aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-14 08:06:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-14 08:06:59 +0000
commit7f9593753a194c3d3db79f803f68d2ebaf98cd12 (patch)
tree53248c85f42e075a371bb71b9e066f398e6baa50 /util-linux/mdev.c
parentb024f8da8fad7ffd9bc5e63ed947bf6bd35fac3e (diff)
downloadbusybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.tar.gz
busybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.tar.bz2
busybox-w32-7f9593753a194c3d3db79f803f68d2ebaf98cd12.zip
randomconfig fixes
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index b1f3d051c..0f7e082ba 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -98,10 +98,11 @@ static void make_device(char *path, int delete)
98 if (strstr(path, "/block/")) 98 if (strstr(path, "/block/"))
99 type = S_IFBLK; 99 type = S_IFBLK;
100 100
101#if ENABLE_FEATURE_MDEV_CONF 101#if !ENABLE_FEATURE_MDEV_CONF
102 parser = config_open2("/etc/mdev.conf", fopen_for_read); 102 mode = 0660;
103 103#else
104 /* If we have config file, look up user settings */ 104 /* If we have config file, look up user settings */
105 parser = config_open2("/etc/mdev.conf", fopen_for_read);
105 while (1) { 106 while (1) {
106 regmatch_t off[1 + 9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; 107 regmatch_t off[1 + 9*ENABLE_FEATURE_MDEV_RENAME_REGEXP];
107 int keep_matching; 108 int keep_matching;