|
|
a43681 |
From fa29161221937243dd7c3a11908aa020aa5e990c Mon Sep 17 00:00:00 2001
|
|
|
a43681 |
From: Peter Jones <pjones@redhat.com>
|
|
|
a43681 |
Date: Mon, 13 Jan 2020 16:40:32 -0500
|
|
|
a43681 |
Subject: [PATCH] Fix "efivar -w" and "efivar -a"
|
|
|
a43681 |
|
|
|
a43681 |
When adding --export, I broke -w and -a by accidentally using the wrong
|
|
|
a43681 |
variable to get the data from. Woops.
|
|
|
a43681 |
|
|
|
a43681 |
Resolves github issue #143
|
|
|
a43681 |
|
|
|
a43681 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
a43681 |
---
|
|
|
a43681 |
src/efivar.c | 4 ++--
|
|
|
a43681 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
a43681 |
|
|
|
a43681 |
diff --git a/src/efivar.c b/src/efivar.c
|
|
|
a43681 |
index 8b1da8888f6..edfd4af7e01 100644
|
|
|
a43681 |
--- a/src/efivar.c
|
|
|
a43681 |
+++ b/src/efivar.c
|
|
|
a43681 |
@@ -614,12 +614,12 @@ int main(int argc, char *argv[])
|
|
|
a43681 |
show_variable(guid_name, SHOW_DECIMAL);
|
|
|
a43681 |
break;
|
|
|
a43681 |
case ACTION_APPEND | ACTION_PRINT:
|
|
|
a43681 |
- prepare_data(infile, &data, &data_size);
|
|
|
a43681 |
+ prepare_data(datafile, &data, &data_size);
|
|
|
a43681 |
edit_variable(guid_name, data, data_size, attributes,
|
|
|
a43681 |
EDIT_APPEND);
|
|
|
a43681 |
break;
|
|
|
a43681 |
case ACTION_WRITE | ACTION_PRINT:
|
|
|
a43681 |
- prepare_data(infile, &data, &data_size);
|
|
|
a43681 |
+ prepare_data(datafile, &data, &data_size);
|
|
|
a43681 |
edit_variable(guid_name, data, data_size, attributes,
|
|
|
a43681 |
EDIT_WRITE);
|
|
|
a43681 |
break;
|
|
|
a43681 |
--
|
|
|
a43681 |
2.26.2
|
|
|
a43681 |
|