Blame SOURCES/open-iscsi-2.0.874-1-iBFT-origin-is-an-enum-not-a-string.patch

c487f3
From 3f15a2270a7efb1a6ee8ef555b01f3d8674818b9 Mon Sep 17 00:00:00 2001
c487f3
From: Lee Duncan <leeman.duncan@gmail.com>
c487f3
Date: Fri, 10 Jul 2015 11:58:55 -0700
c487f3
Subject: iBFT 'origin' is an enum, not a string
c487f3
c487f3
A recent change, commit 4959a89f421fdebc, modified open-iscsi
c487f3
to treat the "origin" field as an enum, not a character
c487f3
string. But one spot was missed.
c487f3
---
c487f3
 utils/fwparam_ibft/fwparam_ibft_sysfs.c | 3 +--
c487f3
 1 file changed, 1 insertion(+), 2 deletions(-)
c487f3
c487f3
diff --git a/utils/fwparam_ibft/fwparam_ibft_sysfs.c b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
c487f3
index 2dc6f6d5fe54..019fc19184bb 100644
c487f3
--- a/utils/fwparam_ibft/fwparam_ibft_sysfs.c
c487f3
+++ b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
c487f3
@@ -201,8 +201,7 @@ static int fill_nic_context(char *id, struct boot_context *context)
c487f3
 		      sizeof(context->secondary_dns));
c487f3
 	sysfs_get_str(id, IBFT_SUBSYS, "dhcp", context->dhcp,
c487f3
 		      sizeof(context->dhcp));
c487f3
-	sysfs_get_str(id, IBFT_SUBSYS, "origin", context->origin,
c487f3
-		      sizeof(context->origin));
c487f3
+	sysfd_get_int(id, IBFT_SUBSYS, "origin", &context->origin);
c487f3
 	return 0;
c487f3
 }
c487f3
 
c487f3
-- 
c487f3
2.9.3
c487f3