From: Masahiro Yamada Date: Sat, 18 Nov 2023 07:59:11 +0000 (+0900) Subject: kconfig: require an exact match for "is not set" to disable CONFIG option X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4aced3ec84a848bd64bfd725e81c54eb31bf8b24;p=linux.git 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 --- diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 795ac6c9378f1..958be12cd621a 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -454,7 +454,7 @@ load: if (!p) continue; *p++ = 0; - if (strncmp(p, "is not set", 10)) + if (strcmp(p, "is not set")) continue; val = "n";