Commit 4aced3ec authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 9925d6b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@ int conf_read_simple(const char *name, int def)
			if (!p)
				continue;
			*p++ = 0;
			if (strncmp(p, "is not set", 10))
			if (strcmp(p, "is not set"))
				continue;

			val = "n";