From: Jonathan McDowell Date: Mon, 19 Jun 2006 21:42:07 +0000 (+0000) Subject: Try to load backends from current dir if none specified. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/3b764b8e96bfcd76f36a76b58ac8ce812cff6ec1?hp=bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84 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. --- 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_")