summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodoros V. Kalamatianos <nyb@users.sourceforge.net>2007-02-25 01:04:23 +0100
committerKay Sievers <kay.sievers@suse.de>2007-02-25 01:04:23 +0100
commit7db33ac19c430c9a4c4af415e2febbd6b17aff2a (patch)
tree8f2377e95a0606db5f2e2738f2b750677e93227c
parent4e13cb5fb7c4b28c89c29437c9d1fbf2dbf372fc (diff)
fix udev attribute names with a colon
-rw-r--r--udev_rules_parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 8ef5ffee46..5ce91df383 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -104,12 +104,9 @@ static int get_key(char **line, char **key, enum key_operation *operation, char
break;
if (linepos[0] == '=')
break;
- if (linepos[0] == '+')
- break;
- if (linepos[0] == '!')
- break;
- if (linepos[0] == ':')
- break;
+ if ((linepos[0] == '+') || (linepos[0] == '!') || (linepos[0] == ':'))
+ if (linepos[1] == '=')
+ break;
}
/* remember end of key */