]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Try to load backends from current dir if none specified.
authorJonathan McDowell <noodles@earth.li>
Mon, 19 Jun 2006 21:42:07 +0000 (21:42 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 19 Jun 2006 21:42:07 +0000 (21:42 +0000)
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

index 68ee44956ccf23feac9b16a7faa0c75c74ffff80..6907144581619699780b671e4381975d36004388 100644 (file)
@@ -46,11 +46,11 @@ bool load_backend(void)
 
        if (config.backends_dir == NULL) {
                soname = malloc(strlen(config.db_backend)
 
        if (config.backends_dir == NULL) {
                soname = malloc(strlen(config.db_backend)
-                       + strlen("/libkeydb_")
+                       + strlen("./libkeydb_")
                        + strlen(".so")
                        + 1);
 
                        + 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_")
        } else {
                soname = malloc(strlen(config.db_backend)
                        + strlen("/libkeydb_")