Skip to content

fix: update skips different file type#956

Open
steadytao wants to merge 1 commit into
RsyncProject:masterfrom
steadytao:fix-update-replaces-different-file-type
Open

fix: update skips different file type#956
steadytao wants to merge 1 commit into
RsyncProject:masterfrom
steadytao:fix-update-replaces-different-file-type

Conversation

@steadytao
Copy link
Copy Markdown

Fixes #827 by making --update skip newer destination entries only when the destination file type matches the source file type.

The manpage says a file-format difference between sender and receiver is important enough for an update regardless of timestamps. However, a newer destination symlink could cause a source regular file to be skipped before the different-type replacement path was reached.

This keeps the existing newer-destination skip for matching file types but lets different file types continue to the replacement logic.

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.

--update incorrectly skips update when source is a file and destination is a symlink

1 participant