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

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