Skip to contentSkip to conversation

handle only block and class devices

PATCH Applied Kay Sievers 2 participants 2 messages Sep 14, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Sorry,
Kay

===== udev.c 1.61 vs edited =====

udev.c +1 -1
@@ -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;
 		}
Applied
#1 lore raw
Quoted 2 lines · Kay Sievers

Fix a stupid logic bug, I introduced with the udev.c simplification. We want to look at class and block devices only.

Applied, thanks.

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel