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