]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/bandbi.c
Fix bandb's interaction with --enable-fhs-paths by storing ban.db in the correct...
[irc/rqf/shadowircd.git] / src / bandbi.c
index 5c9933e26b483e28374eec3c6828037ba785c973..e861b98ecfc5ea1eba7d70aa0e02da9ca58e7b9d 100644 (file)
@@ -82,7 +82,7 @@ start_bandb(void)
        const char *suffix = "";
 #endif
 
-       rb_setenv("BANDB_DPATH", ConfigFileEntry.dpath, 1);
+       rb_setenv("BANDB_DBPATH", PKGLOCALSTATEDIR "/ban.db", 1);
        if(bandb_path == NULL)
        {
                rb_snprintf(fullpath, sizeof(fullpath), "%s/bandb%s", PKGLIBEXECDIR, suffix);