diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-08-20 19:08:37 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-08-20 19:08:37 +0200 |
commit | 8bb39322f092fde89bf1082f51715a2f2da1c187 (patch) | |
tree | 7828d93a9c50675fe1ebef606d4ecc0d871f4b1b /udev_rules_parse.c | |
parent | 3a020a85da768808a03f1574b001d1d06d55ae07 (diff) |
always expect KEY{value} on ATTR, ATTRS, ENV keys
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r-- | udev_rules_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index b9456b5fb0..5603ee1d11 100644 --- a/udev_rules_parse.c +++ b/udev_rules_parse.c @@ -321,7 +321,7 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena continue; } - if (strncasecmp(key, "ATTR", sizeof("ATTR")-1) == 0) { + if (strncasecmp(key, "ATTR{", sizeof("ATTR{")-1) == 0) { attr = get_key_attribute(key + sizeof("ATTR")-1); if (attr == NULL) { err("error parsing ATTR attribute"); @@ -368,8 +368,8 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena continue; } - if (strncasecmp(key, "ATTRS", sizeof("ATTRS")-1) == 0 || - strncasecmp(key, "SYSFS", sizeof("SYSFS")-1) == 0) { + if (strncasecmp(key, "ATTRS{", sizeof("ATTRS{")-1) == 0 || + strncasecmp(key, "SYSFS{", sizeof("SYSFS{")-1) == 0) { attr = get_key_attribute(key + sizeof("ATTRS")-1); if (attr == NULL) { err("error parsing ATTRS attribute"); @@ -381,7 +381,7 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena continue; } - if (strncasecmp(key, "ENV", sizeof("ENV")-1) == 0) { + if (strncasecmp(key, "ENV{", sizeof("ENV{")-1) == 0) { attr = get_key_attribute(key + sizeof("ENV")-1); if (attr == NULL) { err("error parsing ENV attribute"); |