]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Fix blkid.conf parsing
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 12 Mar 2017 16:48:44 +0000 (17:48 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Mar 2017 11:46:47 +0000 (12:46 +0100)
commit55a5fbbc335480eb3b535fbe5f18289d9458d382
treeb16f6546f38c4fdd90e34dea154ed22f9becbf19
parent1765814521bf2aba7b8c03d3ab2e3b784e1ce2c4
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".
libblkid/src/config.c