Skip to content

Fixed as Per Request in prior PR https://github.com/RsyncProject/rsync/pull/1013#1014

Open
ThatByteGuy wants to merge 2 commits into
RsyncProject:masterfrom
ThatByteGuy:master
Open

Fixed as Per Request in prior PR https://github.com/RsyncProject/rsync/pull/1013#1014
ThatByteGuy wants to merge 2 commits into
RsyncProject:masterfrom
ThatByteGuy:master

Conversation

@ThatByteGuy

Copy link
Copy Markdown

Update:

During review it was pointed out that the Solaris write loop also uses
bufpos = -1 as an error sentinel even though bufpos is a size_t.

This wraps to SIZE_MAX, allowing the final return expression to
report success after a failed write.

The updated patch returns -1 directly on non-retryable write errors
instead of using a sentinel value.

Use the remaining byte count for retry writes and avoid using a
size_t sentinel for write failures.

@steadytao steadytao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Much appreciated. LGTM.

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.

2 participants