aboutsummaryrefslogtreecommitdiff
path: root/src/tools/connection_patcher/Program.cpp
diff options
context:
space:
mode:
authorBernd Lörwald <bloerwald@googlemail.com>2014-12-13 12:29:54 +0100
committerBernd Lörwald <bloerwald@googlemail.com>2014-12-13 12:29:54 +0100
commit6826fbdd740ad3a7f483d62a715920eea176604b (patch)
tree3a9efca96c56e06bf6c4edf601e921258f2d67a8 /src/tools/connection_patcher/Program.cpp
parent3d69c823fb3c3d1f8979b1d7e1cc070669b032ce (diff)
tools/connection_patcher: add executable permissions to binary to avoid the rare case where permissions of replaced file are ignored
Diffstat (limited to 'src/tools/connection_patcher/Program.cpp')
-rw-r--r--src/tools/connection_patcher/Program.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp
index 56007232d20..fe86936a95e 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<Patches::Mac::x64, Patterns::Mac::x64>
(&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<Patches::Mac::x64, Patterns::Mac::x64>
( "97eeb2e28e9e56ed6a22d09f44e2ff43c93315e006bbad43bafc0defaa6f50ae.auth"
, "/Users/Shared/Blizzard/Battle.net/Cache/"