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

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