Skip to content

fix: symlink itemize never reports size changes - #2572

Merged
oferchen merged 1 commit into
masterfrom
fix/symlink-itemize-size
Mar 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/symlink-itemize-size

Conversation

@oferchen

@oferchen oferchen commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Upstream rsync (log.c:706) unconditionally sets c[3] = '.' for symlinks, meaning size changes are never reported in itemized output
  • Added is_symlink guard in format_itemized_changes to skip size_changed for symlink entries
  • Expanded DataCopied match arm for rustfmt compliance
  • Added 7 targeted tests covering symlink-specific positions 3 and 4

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy -p cli --all-features passes
  • All 6 itemize_symlink tests pass
  • CI: fmt+clippy, nextest, Windows, macOS, Linux musl

Upstream rsync unconditionally sets c[3] = '.' for symlinks, meaning
size changes are never reported in itemized output for symbolic links.

- Skip size_changed flag for symlinks in format_itemized_changes
- Expand DataCopied match arm for rustfmt compliance
- Add 7 targeted tests covering symlink positions 3 and 4
@github-actions github-actions Bot added the bug Something isn't working label Mar 7, 2026
@oferchen
oferchen merged commit b8f3eba into master Mar 7, 2026
32 checks passed
@oferchen
oferchen deleted the fix/symlink-itemize-size branch March 7, 2026 13:59
oferchen added a commit that referenced this pull request May 1, 2026
…2572)

Upstream rsync unconditionally sets c[3] = '.' for symlinks, meaning
size changes are never reported in itemized output for symbolic links.

- Skip size_changed flag for symlinks in format_itemized_changes
- Expand DataCopied match arm for rustfmt compliance
- Add 7 targeted tests covering symlink positions 3 and 4
oferchen added a commit that referenced this pull request May 5, 2026
…2572)

Upstream rsync unconditionally sets c[3] = '.' for symlinks, meaning
size changes are never reported in itemized output for symbolic links.

- Skip size_changed flag for symlinks in format_itemized_changes
- Expand DataCopied match arm for rustfmt compliance
- Add 7 targeted tests covering symlink positions 3 and 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant