linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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

* Re: [patch] handle only block and class devices
  2004-09-14  0:31 [patch] handle only block and class devices Kay Sievers
@ 2004-09-14  5:58 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-09-14  5:58 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Sep 14, 2004 at 02:31:10AM +0200, Kay Sievers wrote:
> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ 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).