From: Theodoros V. Kalamatianos Date: Sun, 25 Feb 2007 00:04:23 +0000 (+0100) Subject: fix udev attribute names with a colon X-Git-Tag: 174~2061 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7db33ac19c430c9a4c4af415e2febbd6b17aff2a;p=elogind.git fix udev attribute names with a colon --- diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 8ef5ffee4..5ce91df38 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 */