]> err.no Git - systemd/commitdiff
fix udev attribute names with a colon
authorTheodoros V. Kalamatianos <nyb@users.sourceforge.net>
Sun, 25 Feb 2007 00:04:23 +0000 (01:04 +0100)
committerKay Sievers <kay.sievers@suse.de>
Sun, 25 Feb 2007 00:04:23 +0000 (01:04 +0100)
udev_rules_parse.c

index 8ef5ffee46431dd3e60510240eeb851d39e0af73..5ce91df383dfdb5c924b7008549b6d7b8679d70c 100644 (file)
@@ -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 */