diff options
| author | Roman Zippel <zippel@linux-m68k.org> | 2003-06-05 18:18:53 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-05 18:18:53 -0700 |
| commit | 6b206194afe3f602ad6b88c7981736837e4a1e70 (patch) | |
| tree | d27d3644ee22dda3735e7aa584dc2ac25baf77fd /scripts | |
| parent | cffbe99ee5535f02ccdbfc264f9aa744d0c9ea7d (diff) | |
[PATCH] ignore attempts to change unchangable symbols
This fixes a problem which can show up with the new select facility, e.g.
a symbol is forced to 'y', so we should never even try to change such
symbols.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/conf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 323dd1c92bd9..fa320f79a5da 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -73,6 +73,13 @@ static void conf_askvalue(struct symbol *sym, const char *def) line[0] = '\n'; line[1] = 0; + if (!sym_is_changable(sym)) { + printf("%s\n", def); + line[0] = '\n'; + line[1] = 0; + return; + } + switch (input_mode) { case ask_new: case ask_silent: @@ -82,12 +89,6 @@ static void conf_askvalue(struct symbol *sym, const char *def) } check_stdin(); case ask_all: - if (!sym_is_changable(sym)) { - printf("%s\n", def); - line[0] = '\n'; - line[1] = 0; - return; - } fflush(stdout); fgets(line, 128, stdin); return; |
