From: kay.sievers@vrfy.org Date: Tue, 14 Sep 2004 13:50:33 +0000 (-0700) Subject: [PATCH] handle only block and class devices X-Git-Tag: 032~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d74f9967b54104895e49c05549121026515fa58;p=systemd [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. --- 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; }