diff --git a/src/data_transfer.cpp b/src/data_transfer.cpp index f028a31e7f510bfb67a05d0b22c83d4ebd3933ae..7cf4d7770761e8c07b0c18a3b533f3f8a15d55bb 100644 --- a/src/data_transfer.cpp +++ b/src/data_transfer.cpp @@ -567,7 +567,7 @@ TransferManager::onIncomingProfile(const std::shared_ptr<dhtnet::ChannelSocket>& std::filesystem::rename(path, destPath); if (!pimpl->accountUri_.empty() && uri == pimpl->accountUri_) { // If this is the account profile, link or copy it to the account profile path - if (!fileutils::createFileLink(destPath, pimpl->accountProfilePath_)) { + if (!fileutils::createFileLink(pimpl->accountProfilePath_, destPath)) { std::error_code ec; std::filesystem::copy_file(destPath, pimpl->accountProfilePath_, ec); }