rpms/iscsi-initiator-utils/devel open-iscsi-2.0-870.1-485217.patch, NONE, 1.1 iscsi-initiator-utils.spec, 1.38, 1.39
Hans de Goede
jwrdegoede at fedoraproject.org
Thu Feb 12 15:46:00 UTC 2009
- Previous message: rpms/kdebase-runtime/devel kdebase-runtime.spec,1.93,1.94
- Next message: rpms/anjuta/devel import.log, NONE, 1.1 .cvsignore, 1.14, 1.15 anjuta.spec, 1.56, 1.57 sources, 1.14, 1.15 anjuta-2.24.2-webkit.patch, 1.1, NONE
- 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-serv5668
Modified Files:
iscsi-initiator-utils.spec
Added Files:
open-iscsi-2.0-870.1-485217.patch
Log Message:
* Thu Feb 12 2009 Hans de Goede <hdegoede at redhat.com> 6.2.0.870-4
- Fix libiscsi.discover_sendtargets python method to accept None as valid
authinfo argument (#485217)
open-iscsi-2.0-870.1-485217.patch:
--- NEW FILE open-iscsi-2.0-870.1-485217.patch ---
diff -up open-iscsi-2.0-870.1/libiscsi/pylibiscsi.c~ open-iscsi-2.0-870.1/libiscsi/pylibiscsi.c
--- open-iscsi-2.0-870.1/libiscsi/pylibiscsi.c~ 2009-02-12 15:30:52.000000000 +0100
+++ open-iscsi-2.0-870.1/libiscsi/pylibiscsi.c 2009-02-12 15:48:30.000000000 +0100
@@ -485,19 +485,28 @@ static PyObject *pylibiscsi_discover_sen
char *kwlist[] = {"address", "port", "authinfo", NULL};
const char *address = NULL;
int i, nr_found, port = 3260;
- PyIscsiChapAuthInfo *pyauthinfo = NULL;
+ PyObject *authinfo_arg = NULL;
const struct libiscsi_auth_info *authinfo = NULL;
struct libiscsi_node *found_nodes;
PyObject* found_node_list;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|iO!",
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|iO",
kwlist, &address, &port,
- &PyIscsiChapAuthInfo_Type,
- &pyauthinfo))
+ &authinfo_arg))
return NULL;
- if (pyauthinfo)
- authinfo = &pyauthinfo->info;
+ if (authinfo_arg) {
+ if (PyObject_IsInstance(authinfo_arg, (PyObject *)
+ &PyIscsiChapAuthInfo_Type)) {
+ PyIscsiChapAuthInfo *pyauthinfo =
+ (PyIscsiChapAuthInfo *)authinfo_arg;
+ authinfo = &pyauthinfo->info;
+ } else if (authinfo_arg != Py_None) {
+ PyErr_SetString(PyExc_ValueError,
+ "invalid authinfo type");
+ return NULL;
+ }
+ }
if (libiscsi_discover_sendtargets(context, address, port, authinfo,
&nr_found, &found_nodes)) {
Index: iscsi-initiator-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/iscsi-initiator-utils/devel/iscsi-initiator-utils.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- iscsi-initiator-utils.spec 28 Jan 2009 21:44:53 -0000 1.38
+++ iscsi-initiator-utils.spec 12 Feb 2009 15:45:30 -0000 1.39
@@ -3,7 +3,7 @@
Summary: iSCSI daemon and utility programs
Name: iscsi-initiator-utils
Version: 6.2.0.870
-Release: 3%{?dist}
+Release: 4%{?dist}
Source0: http://www.open-iscsi.org/bits/open-iscsi-2.0-870.1.tar.gz
Source1: iscsid.init
Source2: iscsidevs.init
@@ -18,6 +18,7 @@
Patch7: open-iscsi-2.0-870.1-add-libiscsi.patch
Patch8: open-iscsi-2.0-870.1-no-exit.patch
Patch9: open-iscsi-2.0-870.1-ibft-newer-kernel.patch
+Patch10: open-iscsi-2.0-870.1-485217.patch
Group: System Environment/Daemons
License: GPLv2+
@@ -55,6 +56,7 @@
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
%build
@@ -158,6 +160,10 @@
%{_includedir}/libiscsi.h
%changelog
+* Thu Feb 12 2009 Hans de Goede <hdegoede at redhat.com> 6.2.0.870-4
+- Fix libiscsi.discover_sendtargets python method to accept None as valid
+ authinfo argument (#485217)
+
* Wed Jan 28 2009 Hans de Goede <hdegoede at redhat.com> 6.2.0.870-3
- Fix reading of iBFT firmware with newer kernels
- Previous message: rpms/kdebase-runtime/devel kdebase-runtime.spec,1.93,1.94
- Next message: rpms/anjuta/devel import.log, NONE, 1.1 .cvsignore, 1.14, 1.15 anjuta.spec, 1.56, 1.57 sources, 1.14, 1.15 anjuta-2.24.2-webkit.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list