1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-17 13:57:24 +03:00

ignore all messages with missing devpath or action

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2006-01-20 02:54:31 +01:00
parent fbc5a2b921
commit 0ec819d92b

@ -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;
}