From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 14 Sep 2004 00:31:10 +0000 Subject: [patch] handle only block and class devices Message-Id: <20040914003110.GA14829@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="fdj2RfSjLxBAspz7" List-Id: To: linux-hotplug@vger.kernel.org --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Fix a stupid logic bug, I introduced with the udev.c simplification. We want to look at class and block devices only. Sorry, Kay --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="udev-bug-01.patch" ===== 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; } --fdj2RfSjLxBAspz7-- ------------------------------------------------------- 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel