mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-11 04:28:41 +01:00
tools/connection_patcher: add executable permissions to binary to avoid the rare case where permissions of replaced file are ignored
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user