Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kdesktop 638 tmp file remain in tmp after download [Linux] #389

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

herve-er
Copy link
Contributor

No description provided.

@herve-er herve-er changed the title Kdesktop 638 tmp file seems to remain in tmp after download on manjaro linux Kdesktop 638 tmp file remain in tmp after download [Linux] Nov 13, 2024
@herve-er herve-er added the 3.6.8 label Nov 13, 2024
@herve-er herve-er marked this pull request as ready for review November 13, 2024 12:56
@herve-er herve-er requested a review from a team as a code owner November 13, 2024 12:56
@herve-er herve-er added this to the 3.6.8 milestone Nov 19, 2024
@herve-er herve-er removed the 3.6.8 label Nov 19, 2024
@herve-er herve-er marked this pull request as draft November 19, 2024 12:52
@herve-er herve-er marked this pull request as ready for review November 19, 2024 12:53
@@ -528,10 +523,15 @@ bool DownloadJob::moveTmpFile(const SyncPath &path, bool &restartSync) {
// The sync might be on a different file system than tmp folder.
// In that case, try to copy the file instead.
ec.clear();
std::filesystem::copy(path, _localpath, std::filesystem::copy_options::overwrite_existing, ec);
std::filesystem::copy(tmpPath, _localpath, std::filesystem::copy_options::overwrite_existing, ec);
bool removed = removeTmpFile(tmpPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this is the main change: could a unit test prevent a regression?

@herve-er herve-er marked this pull request as draft November 27, 2024 10:23
Copy link

sonarcloud bot commented Nov 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syncronization of large files fails on Linux systems with too-small /tmp
2 participants