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

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