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

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