rpms/iscsi-initiator-utils/devel open-iscsi-2.0-870.1-490515-workaround.patch, 1.1, 1.2
Hans de Goede
jwrdegoede at fedoraproject.org
Fri Mar 20 14:49:25 UTC 2009
- Previous message (by thread): [pkgdb] amsn: abelito has given up watchcommits
- Next message (by thread): rpms/subtitlecomposer/F-9 subtitlecomposer.desktop, NONE, 1.1 subtitlecomposer.png, NONE, 1.1 subtitlecomposer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwrdegoede
Update of /cvs/pkgs/rpms/iscsi-initiator-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11489
Modified Files:
open-iscsi-2.0-870.1-490515-workaround.patch
Log Message:
* Fri Mar 20 2009 Hans de Goede <hdegoede at redhat.com> 6.2.0.870-7
- libiscsi: use fwparam_ibft_sysfs() instead of fw_get_entry(), as
the latter causes stack corruption (workaround #490515)
open-iscsi-2.0-870.1-490515-workaround.patch:
Index: open-iscsi-2.0-870.1-490515-workaround.patch
===================================================================
RCS file: /cvs/pkgs/rpms/iscsi-initiator-utils/devel/open-iscsi-2.0-870.1-490515-workaround.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- open-iscsi-2.0-870.1-490515-workaround.patch 20 Mar 2009 14:24:54 -0000 1.1
+++ open-iscsi-2.0-870.1-490515-workaround.patch 20 Mar 2009 14:49:24 -0000 1.2
@@ -1,6 +1,18 @@
---- open-iscsi-2.0-870.1/libiscsi/libiscsi.c 2009-03-20 15:21:24.000000000 +0100
-+++ new/libiscsi/libiscsi.c 2009-03-20 15:21:11.000000000 +0100
-@@ -196,10 +196,10 @@
+diff -up open-iscsi-2.0-870.1/include/fw_context.h.workaround open-iscsi-2.0-870.1/include/fw_context.h
+--- open-iscsi-2.0-870.1/include/fw_context.h.workaround 2009-03-20 15:47:16.000000000 +0100
++++ open-iscsi-2.0-870.1/include/fw_context.h 2009-03-20 15:48:03.000000000 +0100
+@@ -51,5 +51,7 @@ struct boot_context {
+
+ extern int fw_get_entry(struct boot_context *context, const char *filepath);
+ extern void fw_print_entry(struct boot_context *context);
++extern int fwparam_ibft_sysfs(struct boot_context *context,
++ const char *filepath);
+
+ #endif /* FWPARAM_CONTEXT_H_ */
+diff -up open-iscsi-2.0-870.1/libiscsi/libiscsi.c.workaround open-iscsi-2.0-870.1/libiscsi/libiscsi.c
+--- open-iscsi-2.0-870.1/libiscsi/libiscsi.c.workaround 2009-03-20 15:45:28.000000000 +0100
++++ open-iscsi-2.0-870.1/libiscsi/libiscsi.c 2009-03-20 15:47:03.000000000 +0100
+@@ -196,10 +196,10 @@ int libiscsi_discover_firmware(struct li
*found_nodes = NULL;
memset(&fw_entry, 0, sizeof fw_entry);
@@ -13,27 +25,21 @@
}
memset(&rec, 0, sizeof rec);
-@@ -535,8 +535,10 @@
+@@ -535,7 +535,7 @@ int libiscsi_get_firmware_network_config
memset(config, 0, sizeof *config);
memset(&fw_entry, 0, sizeof fw_entry);
- if (fw_get_entry(&fw_entry, NULL))
-+ if (fwparam_ibft_sysfs(&fw_entry, NULL)) {
-+ strcpy(context->error_str, "Could not read fw values.");
++ if (fwparam_ibft_sysfs(&fw_entry, NULL))
return ENODEV;
-+ }
config->dhcp = strlen(fw_entry.dhcp) ? 1 : 0;
- strncpy(config->iface_name, fw_entry.iface, sizeof fw_entry.iface);
-@@ -557,8 +559,10 @@
+@@ -557,7 +557,7 @@ int libiscsi_get_firmware_initiator_name
memset(initiatorname, 0, LIBISCSI_VALUE_MAXLEN);
memset(&fw_entry, 0, sizeof fw_entry);
- if (fw_get_entry(&fw_entry, NULL))
-+ if (fwparam_ibft_sysfs(&fw_entry, NULL)) {
-+ strcpy(context->error_str, "Could not read fw values.");
++ if (fwparam_ibft_sysfs(&fw_entry, NULL))
return ENODEV;
-+ }
strncpy(initiatorname, fw_entry.initiatorname,
- sizeof fw_entry.initiatorname);
- Previous message (by thread): [pkgdb] amsn: abelito has given up watchcommits
- Next message (by thread): rpms/subtitlecomposer/F-9 subtitlecomposer.desktop, NONE, 1.1 subtitlecomposer.png, NONE, 1.1 subtitlecomposer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list