diff --git a/src/backend-sqlite3.c b/src/backend-sqlite3.c index 7a95a1d..23431de 100644 --- a/src/backend-sqlite3.c +++ b/src/backend-sqlite3.c @@ -461,7 +461,7 @@ generateSQLite(struct configTag *ct) char dbname[PATH_MAX]; int i; - snprintf(dbname, PATH_MAX, "/tmp/%s.db", ct->tag); + snprintf(dbname, PATH_MAX, "%s%s.db", ct->configdefaults->html_basedir, ct->tag); unlink(dbname); if (sqlite3_open_v2(dbname, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL)) {