Blame SOURCES/0064-Fix-efivar-w-and-efivar-a.patch

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