summaryrefslogtreecommitdiff
path: root/source4/cluster/local.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/cluster/local.c')
-rw-r--r--source4/cluster/local.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/cluster/local.c b/source4/cluster/local.c
index dc4759ebae..2abe422d5a 100644
--- a/source4/cluster/local.c
+++ b/source4/cluster/local.c
@@ -25,6 +25,8 @@
#include "lib/tdb/include/tdb.h"
#include "db_wrap.h"
#include "system/filesys.h"
+#include "param/param.h"
+#include "librpc/gen_ndr/misc.h"
/*
server a server_id for the local node
@@ -56,7 +58,7 @@ static struct tdb_wrap *local_tdb_tmp_open(struct cluster_ops *ops,
TALLOC_CTX *mem_ctx, const char *dbname,
int flags)
{
- char *path = smbd_tmp_path(mem_ctx, dbname);
+ char *path = smbd_tmp_path(mem_ctx, global_loadparm, dbname);
struct tdb_wrap *w;
w = tdb_wrap_open(mem_ctx, path, 0, flags,
O_RDWR|O_CREAT, 0600);