ctdb-daemon: Do not attempt to chown Unix domain socket in test mode
commit65ab8cb014ca7ac97433ec53d6d163e6da5a3fe7
authorMartin Schwenke <martin@meltin.net>
Sat, 24 Oct 2020 09:35:53 +0000 (24 20:35 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 2 Nov 2020 08:58:31 +0000 (2 08:58 +0000)
tree74f1e7194a112ab0b351ee2f451972f357f7aefb
parent78c3b5b6a83d934c99ac25480fbc01f9aeb198e3
ctdb-daemon: Do not attempt to chown Unix domain socket in test mode

If run with UID wrapper and UID_WRAPPER_ROOT=1 then securing the
socket will fail.

Test mode means that local daemons are in use, so securing the socket
is not important.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/server/ctdb_daemon.c