mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
Merge pull request #513 from vazub/keventd-input
keventd: fix ENV{} match on unset properties
This commit is contained in:
1 file changed
+2
@@ -1045,6 +1045,8 @@ static int match_key(const struct rule *r, const struct rule_key *k,
|
||||
if (!k->attr)
|
||||
return (k->op == OP_MATCH_NE);
|
||||
subject = uevent_getenv(ev, k->attr);
|
||||
if (!subject)
|
||||
subject = "";
|
||||
break;
|
||||
case KEY_CONST: {
|
||||
if (!k->attr) {
|
||||
|
||||
Reference in new issue
Block a user