summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-17 14:51:23 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commitbbf4805d8750a363b1ec78831ad085b8c56a1c99 (patch)
treeb99ba42fb657f00b098f512f34dd534b14af4036
parent882f61e8eb44ec9f9becc32328667c65f364d066 (diff)
downloadtalos-petitboot-bbf4805d8750a363b1ec78831ad085b8c56a1c99.tar.gz
talos-petitboot-bbf4805d8750a363b1ec78831ad085b8c56a1c99.zip
discover/grub2: unknown commands should fail
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/grub2/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/grub2/script.c b/discover/grub2/script.c
index 67b4b78..5fb13aa 100644
--- a/discover/grub2/script.c
+++ b/discover/grub2/script.c
@@ -246,7 +246,7 @@ int statement_simple_execute(struct grub2_script *script,
entry = script_lookup_function(script, st->argv->argv[0]);
if (!entry) {
fprintf(stderr, "undefined function '%s'\n", st->argv->argv[0]);
- return 0;
+ return 1;
}
rc = entry->fn(script, entry->data, st->argv->argc, st->argv->argv);
OpenPOWER on IntegriCloud