From d22a503a1008f8167119200afae8afa79523b1c2 Mon Sep 17 00:00:00 2001 From: travisladuke Date: Thu, 22 Feb 2024 09:09:52 -0800 Subject: [PATCH] Fix deleting controller network member directory That trailing slash was making it not work. ZT_HOME/controller.d/network/$nwid --- controller/FileDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/FileDB.cpp b/controller/FileDB.cpp index 0ced1226a0..e38aa8909d 100644 --- a/controller/FileDB.cpp +++ b/controller/FileDB.cpp @@ -136,7 +136,7 @@ void FileDB::eraseNetwork(const uint64_t networkId) char p[16384]; OSUtils::ztsnprintf(p,sizeof(p),"%s" ZT_PATH_SEPARATOR_S "%.16llx.json",_networksPath.c_str(),networkId); OSUtils::rm(p); - OSUtils::ztsnprintf(p,sizeof(p),"%s" ZT_PATH_SEPARATOR_S "%.16llx" ZT_PATH_SEPARATOR_S "member",_networksPath.c_str(),(unsigned long long)networkId); + OSUtils::ztsnprintf(p,sizeof(p),"%s" ZT_PATH_SEPARATOR_S "%.16llx",_networksPath.c_str(),(unsigned long long)networkId); OSUtils::rmDashRf(p); _networkChanged(network,nullJson,true); std::lock_guard l(this->_online_l);