Blame SOURCES/0069-Fix-grub-probe-0-option.patch

6b3c76
From cf7c88c63e219f906d058b71f889264ac8e3bc3b Mon Sep 17 00:00:00 2001
a85e8e
From: Colin Watson <cjwatson@ubuntu.com>
a85e8e
Date: Mon, 31 Mar 2014 13:51:17 +0100
6b3c76
Subject: [PATCH 069/261] Fix grub-probe -0 option
a85e8e
a85e8e
* util/grub-probe,c (options): Make -0 work again (broken by
a85e8e
conversion to argp).
a85e8e
(main): Simplify logic.
a85e8e
---
d41074
 ChangeLog         | 6 ++++++
6b3c76
 util/grub-probe.c | 7 ++-----
a85e8e
 2 files changed, 8 insertions(+), 5 deletions(-)
a85e8e
6b3c76
diff --git a/ChangeLog b/ChangeLog
6b3c76
index 9404edab8..efbed8ccb 100644
6b3c76
--- a/ChangeLog
6b3c76
+++ b/ChangeLog
6b3c76
@@ -1,3 +1,9 @@
6b3c76
+2014-03-31  Colin Watson  <cjwatson@ubuntu.com>
6b3c76
+
6b3c76
+	* util/grub-probe,c (options): Make -0 work again (broken by
6b3c76
+	conversion to argp).
6b3c76
+	(main): Simplify logic.
6b3c76
+
6b3c76
 2014-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
6b3c76
 
6b3c76
 	* grub-core/lib/relocator.c: Fix the case when end of leftover is used.
a85e8e
diff --git a/util/grub-probe.c b/util/grub-probe.c
6b3c76
index 1f3b59f05..80509be8a 100644
a85e8e
--- a/util/grub-probe.c
a85e8e
+++ b/util/grub-probe.c
a85e8e
@@ -711,6 +711,7 @@ static struct argp_option options[] = {
a85e8e
    N_("use FILE as the device map [default=%s]"), 0},
a85e8e
   {"target",  't', N_("TARGET"), 0, 0, 0},
a85e8e
   {"verbose",     'v', 0,      0, N_("print verbose messages."), 0},
a85e8e
+  {0, '0', 0, 0, N_("separate items in output using ASCII NUL characters"), 0},
a85e8e
   { 0, 0, 0, 0, 0, 0 }
a85e8e
 };
a85e8e
 
a85e8e
@@ -884,11 +885,7 @@ main (int argc, char *argv[])
a85e8e
   else
a85e8e
     probe (arguments.devices[0], NULL, delim);
a85e8e
 
a85e8e
-  if (!arguments.zero_delim && (print == PRINT_BIOS_HINT
a85e8e
-				|| print == PRINT_IEEE1275_HINT
a85e8e
-				|| print == PRINT_BAREMETAL_HINT
a85e8e
-				|| print == PRINT_EFI_HINT
a85e8e
-				|| print == PRINT_ARC_HINT))
a85e8e
+  if (delim == ' ')
a85e8e
     putchar ('\n');
a85e8e
 
a85e8e
   /* Free resources.  */
6b3c76
-- 
6b3c76
2.13.5
6b3c76