chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a3cea
)
[PATCH] handle only block and class devices
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Tue, 14 Sep 2004 13:50:33 +0000
(06:50 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:37:00 +0000
(21:37 -0700)
Fix a stupid logic bug, I introduced with the udev.c simplification. We
want to look at class and block devices only.
udev.c
patch
|
blob
|
history
diff --git
a/udev.c
b/udev.c
index 114ca0a52bdfb40d04205c9954ba34e094dd70f7..e6f2744fcbefe0826255550a0879e9f2f1c440a3 100644
(file)
--- 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;
}