summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common/brlock_tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/common/brlock_tdb.c')
-rw-r--r--source4/ntvfs/common/brlock_tdb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/ntvfs/common/brlock_tdb.c b/source4/ntvfs/common/brlock_tdb.c
index 34c0b7e979..ee83008ce2 100644
--- a/source4/ntvfs/common/brlock_tdb.c
+++ b/source4/ntvfs/common/brlock_tdb.c
@@ -87,7 +87,6 @@ struct brl_handle {
static struct brl_context *brl_tdb_init(TALLOC_CTX *mem_ctx, struct server_id server,
struct messaging_context *messaging_ctx)
{
- char *path;
struct brl_context *brl;
brl = talloc(mem_ctx, struct brl_context);
@@ -95,10 +94,7 @@ static struct brl_context *brl_tdb_init(TALLOC_CTX *mem_ctx, struct server_id se
return NULL;
}
- path = smbd_tmp_path(brl, "brlock.tdb");
- brl->w = tdb_wrap_open(brl, path, 0,
- TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
- talloc_free(path);
+ brl->w = cluster_tdb_tmp_open(brl, "brlock.tdb", TDB_DEFAULT);
if (brl->w == NULL) {
talloc_free(brl);
return NULL;