summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-09-14 06:50:33 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:00 -0700
commit6d74f9967b54104895e49c05549121026515fa58 (patch)
tree4dea064fbcb2efe6f480f57d5855fd47b9851e7f /udev.c
parent29a3cead404d2043a7a3f98d1fb9c7139222b0df (diff)
[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.
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev.c b/udev.c
index 114ca0a52b..e6f2744fcb 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;
}