mirror of
https://github.com/rclone/rclone.git
synced 2025-04-20 19:08:55 +08:00

In this commit: c63f1865f36058e1 operations: copy: generate stable partial suffix We made the partial suffix for non inplace copies stable. This was a hash based off the file fingerprint. However, given a directory of files which have the same fingerprint the partial suffix collides. On some backends (eg the local backend) the fingerprint is just the size and modification time so files with different contents can collide. The effect of collisions was hash failures on copy when using --transfers > 1. These copies invariably retried successfully which probably explains why this bug hasn't been reported. This fixes the problem by adding the file name to the hash. It also makes sure the hash is always represented as 8 hex bytes for consistency.