From: Kay Sievers Date: Sat, 16 Jul 2005 03:50:34 +0000 (+0200) Subject: thread unknown ENV{key} match as empty value X-Git-Tag: 064~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c609f627fae97bef5f163eb2eb993d3c8211f768 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 --- diff --git a/udev_rules.c b/udev_rules.c index 5669a8593..4bf05cd43 100644 --- a/udev_rules.c +++ b/udev_rules.c @@ -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;