diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-09-14 06:50:33 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:37:00 -0700 |
commit | 6d74f9967b54104895e49c05549121026515fa58 (patch) | |
tree | 4dea064fbcb2efe6f480f57d5855fd47b9851e7f /udev.c | |
parent | 29a3cead404d2043a7a3f98d1fb9c7139222b0df (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |