Blame SOURCES/0126-Don-t-munge-raw-spaces-when-we-re-doing-our-cmdline-.patch

6b3c76
From fdc3bfebfc9a2d7c2b9fb09ae2f873b1ee741d21 Mon Sep 17 00:00:00 2001
a85e8e
From: Hans de Goede <hdegoede@redhat.com>
a85e8e
Date: Mon, 30 Jun 2014 14:16:46 -0400
6b3c76
Subject: [PATCH 126/261] Don't munge raw spaces when we're doing our cmdline
6b3c76
 escaping (#923374)
a85e8e
a85e8e
Signed-off-by: Peter Jones <pjones@redhat.com>
a85e8e
---
a85e8e
 grub-core/lib/cmdline.c | 11 +----------
a85e8e
 1 file changed, 1 insertion(+), 10 deletions(-)
a85e8e
a85e8e
diff --git a/grub-core/lib/cmdline.c b/grub-core/lib/cmdline.c
6b3c76
index 0a5b2afb9..970ea868c 100644
a85e8e
--- a/grub-core/lib/cmdline.c
a85e8e
+++ b/grub-core/lib/cmdline.c
a85e8e
@@ -97,16 +97,7 @@ int grub_create_loader_cmdline (int argc, char *argv[], char *buf,
a85e8e
 
a85e8e
       while (*c)
a85e8e
 	{
a85e8e
-	  if (*c == ' ')
a85e8e
-	    {
a85e8e
-	      *buf++ = '\\';
a85e8e
-	      *buf++ = 'x';
a85e8e
-	      *buf++ = '2';
a85e8e
-	      *buf++ = '0';
a85e8e
-	      c++;
a85e8e
-	      continue;
a85e8e
-	    }
a85e8e
-	  else if (*c == '\\' && *(c+1) == 'x' &&
a85e8e
+	  if (*c == '\\' && *(c+1) == 'x' &&
a85e8e
 		   is_hex(*(c+2)) && is_hex(*(c+3)))
a85e8e
 	    {
a85e8e
 	      *buf++ = *c++;
6b3c76
-- 
6b3c76
2.13.5
6b3c76