Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: require an exact match for "is not set" to disable CONFIG option

Currently, any string starting "is not set" disables a CONFIG option.

For example, "# CONFIG_FOO is not settled down" is accepted as valid
input, functioning the same as "# CONFIG_FOO is not set". It is a
long-standing oddity.

Check the line against the exact pattern "is not set".

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -1
+1 -1
scripts/kconfig/confdata.c
··· 454 454 if (!p) 455 455 continue; 456 456 *p++ = 0; 457 - if (strncmp(p, "is not set", 10)) 457 + if (strcmp(p, "is not set")) 458 458 continue; 459 459 460 460 val = "n";