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:
parent
29a3cead40
commit
6d74f9967b
2
udev.c
2
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user