Blame SOURCES/0027-Actually-set-the-values-we-re-using-to-the-results-o.patch

38ab4d
From bca20371ba27d3c1db0e4d2d1ec533971ccac18f Mon Sep 17 00:00:00 2001
c9eda1
From: Peter Jones <pjones@redhat.com>
c9eda1
Date: Tue, 21 Oct 2014 16:02:13 -0400
38ab4d
Subject: [PATCH 27/31] Actually /set/ the values we're using to the results of
c9eda1
 parsing the number.
c9eda1
c9eda1
This should fix https://github.com/vathpela/efibootmgr/issues/18
c9eda1
c9eda1
Signed-off-by: Peter Jones <pjones@redhat.com>
c9eda1
---
c9eda1
 src/efibootmgr/efibootmgr.c | 6 +++---
c9eda1
 1 file changed, 3 insertions(+), 3 deletions(-)
c9eda1
c9eda1
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
38ab4d
index 4fe0448..73faffa 100644
c9eda1
--- a/src/efibootmgr/efibootmgr.c
c9eda1
+++ b/src/efibootmgr/efibootmgr.c
38ab4d
@@ -1089,7 +1089,7 @@ parse_opts(int argc, char **argv)
c9eda1
 				exit(1);
c9eda1
 			}
c9eda1
 
c9eda1
-			opts.bootnum = num;
c9eda1
+			opts.bootnum = result;
c9eda1
 			break;
c9eda1
 		}
c9eda1
 		case 'c':
38ab4d
@@ -1143,7 +1143,7 @@ parse_opts(int argc, char **argv)
c9eda1
 				exit(1);
c9eda1
 			}
c9eda1
 
c9eda1
-			opts.acpi_hid = num;
c9eda1
+			opts.acpi_hid = result;
c9eda1
 			break;
c9eda1
 		}
c9eda1
 		case 'i':
38ab4d
@@ -1232,7 +1232,7 @@ parse_opts(int argc, char **argv)
c9eda1
 				exit(1);
c9eda1
 			}
c9eda1
 
c9eda1
-			opts.acpi_uid = num;
c9eda1
+			opts.acpi_uid = result;
c9eda1
 			break;
c9eda1
 		}
c9eda1
 		case 'v':
c9eda1
-- 
38ab4d
2.7.4
c9eda1