From d1b4e07e76555ecf47faf36f38a62878969be6d7 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 22 Jul 2020 23:34:06 +0200 Subject: [PATCH] Don't attempt to sync confbase for ephemeral nodes during a join. --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 07326d56..0843cc0c 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -829,7 +829,7 @@ static bool finalize_join(join_state_t *state, const void *buf, uint16_t len) { } /* Ensure the configuration directory metadata is on disk */ - if(!config_sync(mesh, "current") || !sync_path(mesh->confbase)) { + if(!config_sync(mesh, "current") || (mesh->confbase && !sync_path(mesh->confbase))) { return false; } -- 2.39.2