mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
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:
parent
8365854ccd
commit
c609f627fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user