summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-11-18 08:59:11 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2023-11-28 03:22:51 +0100
commit4aced3ec84a848bd64bfd725e81c54eb31bf8b24 (patch)
treec7007534cd03d66f202b14a5e850a62a71a370df /scripts
parentkconfig: introduce getline_stripped() helper (diff)
downloadlinux-4aced3ec84a848bd64bfd725e81c54eb31bf8b24.tar.xz
linux-4aced3ec84a848bd64bfd725e81c54eb31bf8b24.zip
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 795ac6c9378f..958be12cd621 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";