]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Sync the base configuration directory at the end of meshlink_join().
[meshlink] / src / meshlink.c
index 575895125fc67ace16e61344907b1b54f5ba62b9..9b30a2a65e383a9f39a00c8e22df4b5796a48f9d 100644 (file)
@@ -662,7 +662,7 @@ static bool finalize_join(meshlink_handle_t *mesh, const void *buf, uint16_t len
        }
 
        /* Ensure the configuration directory metadata is on disk */
-       if(!config_sync(mesh, "current")) {
+       if(!config_sync(mesh, "current") || !sync_path(mesh->confbase)) {
                return false;
        }