From 3b764b8e96bfcd76f36a76b58ac8ce812cff6ec1 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 19 Jun 2006 21:42:07 +0000 Subject: [PATCH 1/1] Try to load backends from current dir if none specified. If we don't specify a directory for the backends in the config file then try to load them from the current directory. --- keydb_dynamic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keydb_dynamic.c b/keydb_dynamic.c index 68ee449..6907144 100644 --- a/keydb_dynamic.c +++ b/keydb_dynamic.c @@ -46,11 +46,11 @@ bool load_backend(void) if (config.backends_dir == NULL) { soname = malloc(strlen(config.db_backend) - + strlen("/libkeydb_") + + strlen("./libkeydb_") + strlen(".so") + 1); - sprintf(soname, "libkeydb_%s.so", config.db_backend); + sprintf(soname, "./libkeydb_%s.so", config.db_backend); } else { soname = malloc(strlen(config.db_backend) + strlen("/libkeydb_") -- 2.39.5