Skip to content

Commit

Permalink
Merge pull request #6696 from spycrab/updater_cpy
Browse files Browse the repository at this point in the history
Updater: Use copy instead of move
  • Loading branch information
delroth committed Apr 26, 2018
2 parents e0f677c + fb268bb commit 1b38939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Updater/Main.cpp
Expand Up @@ -591,7 +591,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::Rename(temp_path + DIR_SEP + content_filename, path))
if (!File::Copy(temp_path + DIR_SEP + content_filename, path))
{
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
return false;
Expand Down

0 comments on commit 1b38939

Please sign in to comment.