The parser is not consistent and *case insensitive* Type= and Id= tokens
are not expected on all places.
Addresses: https://github.com/karelzak/util-linux/issues/367
Signed-off-by: Karel Zak <kzak@redhat.com>
rc = next_string(&p, &pa->name);
} else if (!strncasecmp(p, "type=", 5) ||
-
!strncasecmp(p, "Id=", 3)) { /* backward compatibility */
char *type;
- p += (*p == 'I' ? 3 : 5); /* "Id=" or "type=" */
+ p += ((*p == 'I' || *p == 'i') ? 3 : 5); /* "Id=", "type=" */
rc = next_string(&p, &type);
if (rc)