diff options
Diffstat (limited to 'source4/rpc_server/dcom/rodb.c')
-rw-r--r-- | source4/rpc_server/dcom/rodb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/dcom/rodb.c b/source4/rpc_server/dcom/rodb.c index 5008e105ba..76f3d2da80 100644 --- a/source4/rpc_server/dcom/rodb.c +++ b/source4/rpc_server/dcom/rodb.c @@ -31,7 +31,7 @@ struct tdb_wrap *openrodb(TALLOC_CTX *mem_ctx) struct tdb_wrap *wrap; char *rodb_name = NULL; - asprintf(&rodb_name, "%s/rot.tdb", lp_lockdir()); + rodb_name = smbd_tmp_path(mem_ctx, "rot.tdb"); wrap = tdb_wrap_open(mem_ctx, rodb_name, 0, 0, O_RDWR|O_CREAT, 0600); SAFE_FREE(rodb_name); |