summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-07-06 02:33:05 +0200
committerGitHub <noreply@github.com>2021-07-06 02:33:05 +0200
commit683807abcef2dffceabb7500fc018b60c3e79d93 (patch)
treef77aa42399689bc376b40a5a5ca82d075e6f2143 /Source
parent27c560fdfa182692316d7f0196bd782b11b7744f (diff)
parentdd5e0c6e153015e428d2ce246ae77c2e20aed678 (diff)
Merge pull request #9858 from OatmealDome/updater-fail
UpdaterCommon: Fix code signing error after updating on macOS
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/UpdaterCommon/UpdaterCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UpdaterCommon/UpdaterCommon.cpp b/Source/Core/UpdaterCommon/UpdaterCommon.cpp
index ebd07e258c..3a4def3d0f 100644
--- a/Source/Core/UpdaterCommon/UpdaterCommon.cpp
+++ b/Source/Core/UpdaterCommon/UpdaterCommon.cpp
@@ -431,7 +431,7 @@ bool UpdateFiles(const std::vector<TodoList::UpdateOp>& to_update,
std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size());
fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(),
content_filename.c_str());
- if (!File::Copy(temp_path + DIR_SEP + content_filename, path))
+ if (!File::Rename(temp_path + DIR_SEP + content_filename, path))
{
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
return false;