diff options
author | Theodoros V. Kalamatianos <nyb@users.sourceforge.net> | 2007-02-25 01:04:23 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2007-02-25 01:04:23 +0100 |
commit | 7db33ac19c430c9a4c4af415e2febbd6b17aff2a (patch) | |
tree | 8f2377e95a0606db5f2e2738f2b750677e93227c | |
parent | 4e13cb5fb7c4b28c89c29437c9d1fbf2dbf372fc (diff) |
fix udev attribute names with a colon
-rw-r--r-- | udev_rules_parse.c | 9 |
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 */ |