From 6d74f9967b54104895e49c05549121026515fa58 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Tue, 14 Sep 2004 06:50:33 -0700 Subject: [PATCH] [PATCH] handle only block and class devices Fix a stupid logic bug, I introduced with the udev.c simplification. We want to look at class and block devices only. --- udev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev.c b/udev.c index 114ca0a5..e6f2744f 100644 --- a/udev.c +++ b/udev.c @@ -122,7 +122,7 @@ int main(int argc, char *argv[], char *envp[]) dbg("looking at '%s'", devpath); /* we only care about class devices and block stuff */ - if (strstr(devpath, "class") && strstr(devpath, "block")) { + if (!strstr(devpath, "class") && !strstr(devpath, "block")) { dbg("not a block or class device"); goto exit; } -- 2.39.5