diff options
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index b2d56575f..ccc00d365 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -610,7 +610,7 @@ static void make_device(char *device_name, char *path, int operation) | |||
610 | * We use strstr("/block/") to forestall future surprises. | 610 | * We use strstr("/block/") to forestall future surprises. |
611 | */ | 611 | */ |
612 | type = S_IFCHR; | 612 | type = S_IFCHR; |
613 | if (strstr(path, "/block/") || (G.subsystem && strncmp(G.subsystem, "block", 5) == 0)) | 613 | if (strstr(path, "/block/") || (G.subsystem && is_prefixed_with(G.subsystem, "block"))) |
614 | type = S_IFBLK; | 614 | type = S_IFBLK; |
615 | 615 | ||
616 | #if ENABLE_FEATURE_MDEV_CONF | 616 | #if ENABLE_FEATURE_MDEV_CONF |