summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-08-29 22:19:28 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-29 22:19:28 +0200
commita506e6298cffed4576f9cea8df15b2f8945fc731 (patch)
treec285fdfb02249674532c7c982a1b4abafc1fce70 /udev_rules.c
parenta75689bad504e35e346b84960b2b604532b1d6b5 (diff)
print warning for invalid TEST operations
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 364d1b7adc..ef352ca2bc 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -994,7 +994,8 @@ static int match_rule(struct udevice *udev, struct udev_rule *rule)
}
}
- if (rule->test.operation != KEY_OP_UNSET) {
+ if (rule->test.operation == KEY_OP_MATCH ||
+ rule->test.operation == KEY_OP_NOMATCH) {
char filename[PATH_SIZE];
char devpath[PATH_SIZE];
char *attr;