diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-11-18 10:59:11 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-11-28 05:22:51 +0300 |
commit | 4aced3ec84a848bd64bfd725e81c54eb31bf8b24 (patch) | |
tree | c7007534cd03d66f202b14a5e850a62a71a370df /scripts/kconfig | |
parent | 9925d6b7d12f5019d2a6c465ae72093101edbfd4 (diff) | |
download | linux-4aced3ec84a848bd64bfd725e81c54eb31bf8b24.tar.xz |
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/kconfig')
-rw-r--r-- | scripts/kconfig/confdata.c | 2 |
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"; |