1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-01 08:58:29 +03:00

[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.
This commit is contained in:
kay.sievers@vrfy.org 2004-09-14 06:50:33 -07:00 committed by Greg KH
parent 29a3cead40
commit 6d74f9967b

2
udev.c
View File

@ -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;
}