From: Kay Sievers Date: Thu, 23 Jul 2009 18:28:16 +0000 (+0200) Subject: format names are not case insensitive X-Git-Tag: 174~872 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b5a611aeb6c78a9290ea31ad62dc039401fb44;p=systemd format names are not case insensitive --- diff --git a/udev/udev-event.c b/udev/udev-event.c index 2f32805f..a407975f 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -126,7 +126,7 @@ size_t udev_event_apply_format(struct udev_event *event, const char *src, char * } for (i = 0; i < ARRAY_SIZE(map); i++) { - if (strncasecmp(&from[1], map[i].name, strlen(map[i].name)) == 0) { + if (strncmp(&from[1], map[i].name, strlen(map[i].name)) == 0) { type = map[i].type; from += strlen(map[i].name)+1; dbg(event->udev, "will substitute format name '%s'\n", map[i].name);