From 66101f2abc24543522f4be12b78914ca37f34656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20L=C3=B6rwald?= Date: Sun, 29 Sep 2019 01:33:00 +0200 Subject: [PATCH] tools/connection_patcher: add executable permissions to binary to avoid the rare case where permissions of replaced file are ignored --- src/tools/connection_patcher/Program.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp index fc19e53f5bd..7cc67a2fabb 100644 --- a/src/tools/connection_patcher/Program.cpp +++ b/src/tools/connection_patcher/Program.cpp @@ -194,6 +194,11 @@ int main(int argc, char** argv) do_patches (&patcher, renamed_binary_path); + { + namespace fs = boost::filesystem; + fs::permissions(renamed_binary_path, fs::add_perms | fs::others_exe | fs::group_exe | fs::owner_exe); + } + do_module ("97eeb2e28e9e56ed6a22d09f44e2ff43c93315e006bbad43bafc0defaa6f50ae.auth" , "/Users/Shared/Blizzard/Battle.net/Cache/"