From: Martin Schwenke Date: Mon, 6 Jul 2026 08:39:59 +0000 (+1000) Subject: ctdb-common: Swap conditions for ctdbd socket and test mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f608b27488f59c736805c963f37f8ffa9d64ed4;p=thirdparty%2Fsamba.git ctdb-common: Swap conditions for ctdbd socket and test mode This makes a subsequent commit less confusing. Signed-off-by: Martin Schwenke Reviewed-by: Anoop C S --- diff --git a/ctdb/common/path.c b/ctdb/common/path.c index c999a6240f4..2aac1e39d37 100644 --- a/ctdb/common/path.c +++ b/ctdb/common/path.c @@ -306,8 +306,9 @@ char *path_config(TALLOC_CTX *mem_ctx) char *path_socket(TALLOC_CTX *mem_ctx, const char *daemon) { path_set_test_mode(); - if (ctdb_paths.test_mode) { - if (strcmp(daemon, "ctdbd") == 0) { + + if (strcmp(daemon, "ctdbd") == 0) { + if (ctdb_paths.test_mode) { const char *t = getenv("CTDB_SOCKET"); if (t != NULL) {