6a80aaf4610bf9a6b455b23a9890c3d4fe46060a
Copying a capture into its own directory resolved the destination to the source's own path: a growing cap.pcap.partial was truncated to zero when the receiver opened its in-flight file, and a finished capture was silently replaced by its (possibly filtered) copy. Compare the source and its final name against both destination paths by inode, or by canonical parent + name for files that don't exist yet, and bail before anything is opened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Rust
93.6%
Shell
4.9%
Python
1.5%