diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-11-18 16:59:11 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-11-28 11:22:51 +0900 |
commit | 4aced3ec84a848bd64bfd725e81c54eb31bf8b24 (patch) | |
tree | c7007534cd03d66f202b14a5e850a62a71a370df /scripts | |
parent | 9925d6b7d12f5019d2a6c465ae72093101edbfd4 (diff) | |
download | linux-4aced3ec84a848bd64bfd725e81c54eb31bf8b24.tar.gz linux-4aced3ec84a848bd64bfd725e81c54eb31bf8b24.tar.bz2 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.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"; |