Make help text work again for string/int/hex
PATCH 1/1 Make help text work again for string/int/hex
conf_askvalue calls fgets() which puts "?\n" in the buffer, not "?". So testing the second char for '\0' fails every time. You need to check for \n instead, I think.
(whitespace damaged patch, it's a trivial change to make)
Index: scripts/kconfig/conf.c
===================================================================
RCS file: /var/cvs/linux-2.6/scripts/kconfig/conf.c,v retrieving revision 1.1
kconfig/conf.c 25 Sep 2003 13:56:03 -0000 renamed from kconfig/conf.c 29 Jul 2003 17:02:27 -0000 1.1 +1 -1
@@ -174,7 +174,7 @@ int conf_string(struct menu *menu) break; case '?': /* print help */ - if (line[1] == 0) { + if (line[1] == '\n') { help = nohelp_text; if (menu->sym->help) help = menu->sym->help;
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk