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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 5ac801555..34cabc934 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -101,9 +101,9 @@ static void make_device(char *path, int delete)
101 * "/sys/block/..." is for block devices. "/sys/bus" etc is not. 101 * "/sys/block/..." is for block devices. "/sys/bus" etc is not.
102 * But since 2.6.25 block devices are also in /sys/class/block. 102 * But since 2.6.25 block devices are also in /sys/class/block.
103 * We use strstr("/block/") to forestall future surprises. */ 103 * We use strstr("/block/") to forestall future surprises. */
104 type = S_IFCHR; 104 type = S_IFCHR;
105 if (strstr(path, "/block/")) 105 if (strstr(path, "/block/"))
106 type = S_IFBLK; 106 type = S_IFBLK;
107 107
108#if ENABLE_FEATURE_MDEV_CONF 108#if ENABLE_FEATURE_MDEV_CONF
109 parser = config_open2("/etc/mdev.conf", fopen_for_read); 109 parser = config_open2("/etc/mdev.conf", fopen_for_read);