* [patch] handle only block and class devices
@ 2004-09-14 0:31 Kay Sievers
2004-09-14 5:58 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-09-14 0:31 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Fix a stupid logic bug, I introduced with the udev.c simplification. We
want to look at class and block devices only.
Sorry,
Kay
[-- Attachment #2: udev-bug-01.patch --]
[-- Type: text/plain, Size: 467 bytes --]
===== udev.c 1.61 vs edited =====
--- 1.61/udev.c 2004-09-07 17:48:42 +02:00
+++ edited/udev.c 2004-09-14 02:25:32 +02:00
@@ -122,7 +122,7 @@ int main(int argc, char *argv[], char *e
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-14 5:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-14 0:31 [patch] handle only block and class devices Kay Sievers
2004-09-14 5:58 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).