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:
22f9cb5
)
input_id: Do not tag non-input devices with ID_INPUT
author
Martin Pitt
<martin.pitt@ubuntu.com>
Thu, 3 Dec 2009 09:22:04 +0000
(10:22 +0100)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Thu, 3 Dec 2009 09:22:04 +0000
(10:22 +0100)
Current rules only call it for input devices, but let's be correct.
extras/input_id/input_id.c
patch
|
blob
|
history
diff --git
a/extras/input_id/input_id.c
b/extras/input_id/input_id.c
index fededa3f7d0ab1f83141d0d9ec4b29315492918a..8024524681d65619cd2aa91bf2300f4197c08402 100644
(file)
--- a/
extras/input_id/input_id.c
+++ b/
extras/input_id/input_id.c
@@
-146,6
+146,10
@@
int main (int argc, char** argv)
while (dev != NULL && udev_device_get_sysattr_value(dev, "capabilities/key") == NULL)
dev = udev_device_get_parent(dev);
+ /* not an "input" class device */
+ if (dev == NULL)
+ return 0;
+
/* Use this as a flag that input devices were detected, so that this
* program doesn't need to be called more than once per device */
puts("ID_INPUT=1");