thread unknown ENV{key} match as empty value
This way we can run a rule if a certain key is not set by:
ENV{key}="" or ENV{key}!="?*"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
+2
-2
@@ -748,8 +748,8 @@ static int match_rule(struct udevice *udev, struct udev_rule *rule,
|
||||
const char *value = getenv(key_name);
|
||||
|
||||
if (!value) {
|
||||
dbg("ENV{'%s'} is not found", key_name);
|
||||
goto exit;
|
||||
dbg("ENV{'%s'} is not set", key_name);
|
||||
value = "";
|
||||
}
|
||||
if (match_key("ENV", rule, &pair->key, value))
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user