From: Ken Raeburn Date: Thu, 27 Apr 2006 22:41:41 +0000 (+0000) Subject: (DB2_NAME): New macro, adding .so suffix for now. X-Git-Tag: krb5-1.5-alpha1~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=596bfd4c2645cd9e2a652ea8def569c69c55da66;p=krb5.git (DB2_NAME): New macro, adding .so suffix for now. (kdb_get_library_name, kdb_load_library): Use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17965 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c index 66de71a96..51c31200d 100644 --- a/src/lib/kdb/kdb5.c +++ b/src/lib/kdb/kdb5.c @@ -161,11 +161,12 @@ kdb_get_library_name(krb5_context kcontext) goto clean_n_exit; } +#define DB2_NAME "db2.so" /* we got the module section. Get the library name from the module */ status = profile_get_string(kcontext->profile, KDB_MODULE_SECTION, value, KDB_LIB_POINTER, /* default to db2 */ - "db2", + DB2_NAME, &lib); if (status) { @@ -315,7 +316,7 @@ kdb_load_library(krb5_context kcontext, char *lib_name, db_library * lib) char **profpath = NULL; char **path = NULL; - if (!strcmp("db2", lib_name) && (kdb_db2_pol_err_loaded == 0)) { + if (!strcmp(DB2_NAME, lib_name) && (kdb_db2_pol_err_loaded == 0)) { initialize_adb_error_table(); kdb_db2_pol_err_loaded = 1; }