Skip to content

Fix: Never delete a move source that changed after it was copied - #182

Merged
MemerGamer merged 3 commits into
mainfrom
linux/a5-DR
Oct 12, 2026
Merged

MemerGamer merged 3 commits into
mainfrom
linux/a5-DR

Conversation

@MemerGamer

Copy link
Copy Markdown
Owner

Hardens the delete race left by #179: the source is atomically renamed (RENAME_NOREPLACE) into a hidden quarantine name in its own directory, re-verified against the copied identity, and only then unlinked; on mismatch it is restored. Residual window (a writer already holding an open fd) is documented.

🤖 Generated with Claude Code

https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq

Kovács Bálint Hunor and others added 3 commits October 13, 2026 00:42
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
# Conflicts:
#	src/Files.Platform.Linux/FileOperations/LinuxFileOperationsService.Move.cs
@MemerGamer
MemerGamer merged commit 3f8fe3a into main Oct 12, 2026
3 checks passed
@MemerGamer
MemerGamer deleted the linux/a5-DR branch October 12, 2026 22:00
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.

1 participant