summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-16 05:50:34 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-16 05:50:34 +0200
commitc609f627fae97bef5f163eb2eb993d3c8211f768 (patch)
treeffb2ed2e23ac2cf814ff8c84db4513e68492c2ad
parent8365854ccda3d0f36333b699454238cff111e169 (diff)
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>
-rw-r--r--udev_rules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 5669a8593e..4bf05cd437 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;