diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-07-16 05:50:34 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-07-16 05:50:34 +0200 |
commit | c609f627fae97bef5f163eb2eb993d3c8211f768 (patch) | |
tree | ffb2ed2e23ac2cf814ff8c84db4513e68492c2ad /udev_rules.c | |
parent | 8365854ccda3d0f36333b699454238cff111e169 (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>
Diffstat (limited to 'udev_rules.c')
-rw-r--r-- | udev_rules.c | 4 |
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; |