dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

23d2ea
From fdc3bfebfc9a2d7c2b9fb09ae2f873b1ee741d21 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
23d2ea
Subject: [PATCH 126/198] 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
-- 
23d2ea
2.7.4
39700a