diff -Nuar busybox-1.1.3+gentoo.orig/util-linux/mdev.c busybox-1.1.3+gentoo/util-linux/mdev.c --- busybox-1.1.3+gentoo.orig/util-linux/mdev.c 2006-06-13 05:30:42.000000000 -0700 +++ busybox-1.1.3+gentoo/util-linux/mdev.c 2008-03-01 18:17:36.000000000 -0800 @@ -52,7 +52,7 @@ /* Determine device name, type, major and minor */ device_name = strrchr(path, '/') + 1; - type = strncmp(path+5, "block/", 6) ? S_IFCHR : S_IFBLK; + type = strstr(path+5, "block/") == NULL ? S_IFCHR : S_IFBLK; if (sscanf(temp, "%d:%d", &major, &minor) != 2) goto end;