dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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