smbd expects to use CTDB_SOCKET (define, not environment variable) as
a default.
If --with-socketpath was specified at build time then smbd and ctdbd
might disagree on the socket location. smbd will use whatever is
specified (i.e. CTDB_SOCKET) but CTDB always uses path_socket() to put
the socket in CTDB_RUNDIR.
CTDB should default to CTDB_SOCKET (define) too.
This only changes the result when --with-socketpath is specified. We
should get rid of that later and always use something in
CTDB_SOCKETDIR.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
if (t != NULL) {
return talloc_strdup(mem_ctx, t);
}
+ } else {
+ return talloc_strdup(mem_ctx, CTDB_SOCKET);
}
}