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

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