+2005-07-06 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb5.c (kdb_get_library_name, kdb_load_library): Change default
+ name to "db2".
+ (kdb_get_library_name): On error reading from the config file,
+ don't just use the default.
+ (kdb_load_library): Don't add "lib" prefix on module name.
+
2005-07-01 Ken Raeburn <raeburn@mit.edu>
* err_handle.c (krb5_err_key): Variable deleted.
status = profile_get_string(kcontext->profile, KDB_MODULE_SECTION, value,
KDB_LIB_POINTER,
/* default to db2 */
- "kdb_db2",
+ "db2",
&lib);
if (status) {
/* free profile string */
profile_release_string(lib);
}
-
- if (status) {
- /* any error default to db2 */
- result = strdup("kdb_db2");
- }
return result;
}
void *vftabl_addr;
char *err_str = NULL;
- if (!strcmp("kdb_db2", lib_name) && (kdb_db2_pol_err_loaded == 0)) {
+ if (!strcmp("db2", lib_name) && (kdb_db2_pol_err_loaded == 0)) {
initialize_adb_error_table();
kdb_db2_pol_err_loaded = 1;
}
strcpy((*lib)->name, lib_name);
for (ndx = 0; db_dl_location[ndx]; ndx++) {
- sprintf(dl_name, "%s/lib%s.so", db_dl_location[ndx], lib_name);
+ sprintf(dl_name, "%s/%s.so", db_dl_location[ndx], lib_name);
(*lib)->dl_handle = dlopen(dl_name, RTLD_NOW);
if ((*lib)->dl_handle) {
/* found the module */