diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-01-20 02:54:31 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-01-20 02:54:31 +0100 |
commit | 0ec819d92bd53a2f64e738c40bde39e4d2dd66be (patch) | |
tree | 9a388e77fc89cbc9c2f6e06edc3c9ecd0d86bb20 /udevd.c | |
parent | fbc5a2b921477cf490198e2781f096668f4ffba8 (diff) |
ignore all messages with missing devpath or action
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevd.c')
-rw-r--r-- | udevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |