diff options
author | Bernd Lörwald <bloerwald@googlemail.com> | 2014-11-08 17:18:18 +0100 |
---|---|---|
committer | Bernd Lörwald <bloerwald@googlemail.com> | 2014-11-08 17:18:18 +0100 |
commit | 4708560b7c7cb214cf3af65b30e68fc0301a8394 (patch) | |
tree | 8ca546ceb1d097989b9557ffd0b26a7681a2bc2c | |
parent | 56d6891197bc8da27c5fb20489c79332818c543e (diff) |
Tools/ConnectionPatcher: fix: don't try setting permissions for non-existing file when patching module
-rw-r--r-- | src/tools/connection_patcher/Program.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/connection_patcher/Program.cpp b/src/tools/connection_patcher/Program.cpp index 93bfc73051f..eee80362500 100644 --- a/src/tools/connection_patcher/Program.cpp +++ b/src/tools/connection_patcher/Program.cpp @@ -60,7 +60,8 @@ namespace Connection_Patcher if (!fs::exists(modulePath)) fs::create_directories(modulePath); - fs::permissions(modulePath / moduleName, fs::add_perms | fs::others_write | fs::group_write | fs::owner_write); + if (fs::exists(modulePath / modulePath)) + 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); |