X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fdatabase.c;h=033875b55eb60aa45648f6fcfe86639ada4061ad;hb=c38b2e192d8de8ef38389cc8071881464fff99bb;hp=91e6aa22f9b0e9e4c04c0e4b5968f5deb9b71f45;hpb=0647b76522be38edfe4b1fbae32addbbf8bb4128;p=blerg.git diff --git a/database/database.c b/database/database.c index 91e6aa2..033875b 100644 --- a/database/database.c +++ b/database/database.c @@ -15,6 +15,7 @@ #include "database.h" #include "configuration.h" #include "subscription.h" +#include "tags.h" #include "util.h" #include "config.h" @@ -156,7 +157,7 @@ int blerg_exists(const char *name) { return 0; } - snprintf(filename, 512, "%s/%s", DATA_PATH, name); + snprintf(filename, 512, "%s/%s", blergconf.data_path, name); if (access(filename, F_OK) == -1) return 0; else @@ -187,7 +188,7 @@ struct blerg *blerg_open(const char *name) { /* Make the directory if it doesn't exist */ blerg->base_path = malloc(512); - snprintf(blerg->base_path, 512, "%s/%s", DATA_PATH, name); + snprintf(blerg->base_path, 512, "%s/%s", blergconf.data_path, name); if (access(blerg->base_path, F_OK) == -1) mkdir(blerg->base_path, 0755);