From 8bbd9133d57fc34b77544cbdd59526ed9ccaa607 Mon Sep 17 00:00:00 2001 From: Duarte Duarte Date: Sun, 11 Jan 2015 22:00:55 +0000 Subject: Tools/ConnectionPatcher: Fix a typo when checking if moduleName dir exists Thanks to @ChipLeo Ref #13866 --- src/tools/connection_patcher/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/connection_patcher/Program.cpp') diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp index 386dd7991c0..127be50791b 100644 --- a/src/tools/connection_patcher/Program.cpp +++ b/src/tools/connection_patcher/Program.cpp @@ -68,7 +68,7 @@ namespace Connection_Patcher if (!fs::exists(modulePath)) fs::create_directories(modulePath); - if (fs::exists(modulePath / modulePath)) + if (fs::exists(modulePath / moduleName)) fs::permissions(modulePath / moduleName, fs::add_perms | fs::others_write | fs::group_write | fs::owner_write); patcher.Finish(modulePath / moduleName); fs::permissions(modulePath / moduleName, fs::remove_perms | fs::others_write | fs::group_write | fs::owner_write); -- cgit v1.2.3