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

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