(DB2_NAME): New macro, adding .so suffix for now.
authorKen Raeburn <raeburn@mit.edu>
Thu, 27 Apr 2006 22:41:41 +0000 (22:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 27 Apr 2006 22:41:41 +0000 (22:41 +0000)
(kdb_get_library_name, kdb_load_library): Use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17965 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb5.c

index 66de71a9644f58d8a0d80c88452814433d46c1b2..51c31200d305da539b7a54a8f35fcea8ac267838 100644 (file)
@@ -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;
     }