From: Tobias Stoeckmann Date: Sun, 12 Mar 2017 16:48:44 +0000 (+0100) Subject: libblkid: Fix blkid.conf parsing X-Git-Tag: v2.30-rc1~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55a5fbbc335480eb3b535fbe5f18289d9458d382;p=thirdparty%2Futil-linux.git libblkid: Fix blkid.conf parsing The SEND_UEVENT=yes|no line is not properly parsed, because the offset jumps one byte too far behind the equal sign. Therefore, every configuration that contains the line "SEND_UEVENT=yes" still does not send an uevent. The fix is simple: adjust the offset to be "12" instead of "13". --- diff --git a/libblkid/src/config.c b/libblkid/src/config.c index 1822f1c678..52f159d870 100644 --- a/libblkid/src/config.c +++ b/libblkid/src/config.c @@ -88,7 +88,7 @@ static int parse_next(FILE *fd, struct blkid_config *conf) } while (*s == '\0' || *s == '#'); if (!strncmp(s, "SEND_UEVENT=", 12)) { - s += 13; + s += 12; if (*s && !strcasecmp(s, "yes")) conf->uevent = TRUE; else if (*s)