dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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