[ 2431835 ] XML client library not found.
diff --git a/ChangeLog b/ChangeLog
index d995a33..cad31d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-27 Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
+ * cimc/cimclient.c:
+ Fixed 2431835: XML client library not found.
+
2008-11-12 Chris Buccella <buccella@linux.vnet.ibm.com>
* TEST/*.c, backend/cimxml/indicationlistener.c:
diff --git a/NEWS b/NEWS
index 9bdb81b..023f928 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@
- 2102345: missing configuration of CIM-HOST-PORT in sblim-sfcc
- 2158091: sfcb modules belong in private dir
- 2270179: Missing includes and values in return statements
+- 2431835: XML client library not found.
Changes in 2.1
==============
diff --git a/cimc/cimcclient.c b/cimc/cimcclient.c
index 2c408bb..9f29a24 100644
--- a/cimc/cimcclient.c
+++ b/cimc/cimcclient.c
@@ -1,6 +1,6 @@
/*
- * $Id: cimcclient.c,v 1.4 2008/10/24 15:38:59 mchasal Exp $
+ * $Id: cimcclient.c,v 1.5 2008/12/15 23:54:25 mchasal Exp $
*
* © Copyright IBM Corp. 2007
*
@@ -50,7 +50,11 @@
*rc=3;
snprintf(*msg,ERRLEN,"Invalid connection type '%s'. Must be 'XML' or 'SfcbLocal'.",id);
} else {
- snprintf(libName, LIBLEN, "%s/libcimcClient%s.so",SFCB_LIBDIR,id);
+ if (strcmp(id, "SfcbLocal") == 0) {
+ snprintf(libName, LIBLEN, "%s/libcimcClient%s.so",SFCB_LIBDIR,id);
+ } else {
+ snprintf(libName, LIBLEN, "libcimcClient%s.so",id);
+ }
library = dlopen(libName, RTLD_NOW);
if (library==NULL) {
*msg=calloc(1,ERRLEN+1);