File 0002-tcp-use-RUNDIR-for-.socket_lock-path.patch of Package ctdb

From 2390c02b09b342c244c6c8c3553d0d501a6af140 Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@samba.org>
Date: Fri, 13 Jun 2014 16:44:18 +0200
Subject: [PATCH 2/2] tcp: use RUNDIR for .socket_lock path

Some platforms do not nest runtime files under VARDIR (localstate), use
the RUNDIR path provided at configure time.

Signed-off-by: David Disseldorp <ddiss@samba.org>
---
 tcp/tcp_connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tcp/tcp_connect.c b/tcp/tcp_connect.c
index 8032662..db5c515 100644
--- a/tcp/tcp_connect.c
+++ b/tcp/tcp_connect.c
@@ -293,7 +293,7 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb)
 						struct ctdb_tcp);
         ctdb_sock_addr sock;
 	int lock_fd, i;
-	const char *lock_path = VARDIR "/run/ctdb/.socket_lock";
+	const char *lock_path = RUNDIR "/ctdb/.socket_lock";
 	struct flock lock;
 	int one = 1;
 	int sock_size;
-- 
1.8.4.5