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

39700a
From ee6df3680adbe2bb8165c98ed0e39f6258cd873e 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
39700a
Subject: [PATCH 126/143] Don't munge raw spaces when we're doing our cmdline
39700a
 escaping (#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
39700a
index 0a5b2af..970ea86 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++;
39700a
-- 
39700a
1.9.3
39700a