From 9c5b1eeaf68c3d3c4d138dcb0008a018030aa39a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Sep 2014 10:00:05 +0200 Subject: [PATCH] messaging_dgm: messaging_dgm_lockfile_create does not use tmp_ctx anymore Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/lib/messages_dgm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index 07936f8f1b2..a77bda97e7c 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -70,8 +70,7 @@ static int messaging_dgm_lockfile_name(struct sun_path_buf *buf, static int messaging_dgm_context_destructor(struct messaging_dgm_context *c); -static int messaging_dgm_lockfile_create(TALLOC_CTX *tmp_ctx, - const char *cache_dir, +static int messaging_dgm_lockfile_create(const char *cache_dir, uid_t dir_owner, pid_t pid, int *plockfile_fd, uint64_t unique) { @@ -222,7 +221,7 @@ int messaging_dgm_init(TALLOC_CTX *mem_ctx, return ENAMETOOLONG; } - ret = messaging_dgm_lockfile_create(ctx, cache_dir, dir_owner, pid.pid, + ret = messaging_dgm_lockfile_create(cache_dir, dir_owner, pid.pid, &ctx->lockfile_fd, pid.unique_id); if (ret != 0) { DEBUG(1, ("%s: messaging_dgm_create_lockfile failed: %s\n", -- 2.11.4.GIT