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:
Kay Sievers 2005-07-16 05:50:34 +02:00
parent 8365854ccd
commit c609f627fa

View File

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