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:
fbc5a2b
)
ignore all messages with missing devpath or action
author
Kay Sievers
<kay.sievers@suse.de>
Fri, 20 Jan 2006 01:54:31 +0000
(
02:54
+0100)
committer
Kay Sievers
<kay.sievers@suse.de>
Fri, 20 Jan 2006 01:54:31 +0000
(
02:54
+0100)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udevd.c
patch
|
blob
|
history
diff --git
a/udevd.c
b/udevd.c
index f64a4252bbbb5ea018e53a88abc7fd509d52020e..c45d3a4cd0513b4d00f5bed18882bf4ef595cbea 100644
(file)
--- a/
udevd.c
+++ b/
udevd.c
@@
-516,8
+516,8
@@
static struct uevent_msg *get_msg_from_envbuf(const char *buf, int buf_size)
msg->envp[i++] = "UDEVD_EVENT=1";
msg->envp[i] = NULL;
- if (
!msg->devpath
) {
- info("DEVPATH missing, ignore message");
+ if (
msg->devpath == NULL || msg->action == NULL
) {
+ info("DEVPATH
or ACTION
missing, ignore message");
free(msg);
return NULL;
}