[PATCH] config: exit if no beginning filename

From: Randy.Dunlap
Date: Sun Apr 09 2006 - 23:21:25 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

If the beginning Kconfig file is missing, config segfaults
so it might as well exit after the error message.

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
---
scripts/kconfig/conf.c | 1 +
1 files changed, 1 insertion(+)

--- linux-2617-rc1.orig/scripts/kconfig/conf.c
+++ linux-2617-rc1/scripts/kconfig/conf.c
@@ -553,6 +553,7 @@ int main(int ac, char **av)
name = av[i];
if (!name) {
printf(_("%s: Kconfig file missing\n"), av[0]);
+ exit(1);
}
conf_parse(name);
//zconfdump(stdout);


---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/