nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0121-Fix-grub_script_execute_sourcecode-usage-on-ppc.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Peter Jones <pjones@redhat.com>
f725e3
Date: Fri, 10 Jan 2014 09:36:24 -0500
f725e3
Subject: [PATCH] Fix grub_script_execute_sourcecode() usage on ppc.
f725e3
f725e3
593e430c made it not take the extra argc/argv that this code still
f725e3
passes it.
f725e3
f725e3
Signed-off-by: Peter Jones <pjones@redhat.com>
f725e3
---
f725e3
 grub-core/normal/main.c | 2 +-
f725e3
 1 file changed, 1 insertion(+), 1 deletion(-)
f725e3
f725e3
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
f725e3
index 0da2a520d2d..f66c03c4c6e 100644
f725e3
--- a/grub-core/normal/main.c
f725e3
+++ b/grub-core/normal/main.c
f725e3
@@ -289,7 +289,7 @@ grub_normal_execute (const char *config, int nested, int batch)
f725e3
       if (! grub_ieee1275_cas_reboot (script))
f725e3
         {
f725e3
           char *dummy[1] = { NULL };
f725e3
-          if (! grub_script_execute_sourcecode (script, 0, dummy))
f725e3
+          if (! grub_script_execute_sourcecode (script))
f725e3
             boot = 1;
f725e3
         }
f725e3
       grub_free (script);