Skip to content

fix: align itemize output format with upstream rsync - #2906

Merged
oferchen merged 2 commits into
masterfrom
fix/itemize-output-format
Mar 22, 2026
Merged

oferchen merged 2 commits into
masterfrom
fix/itemize-output-format

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Fix symlink size suppression in format_itemize(): upstream log.c:705-707 sets position 3 to dot for symlinks, but our public API emitted s when size_changed was set
  • Fix trailing-dot collapse to check rendered characters instead of raw flags: upstream log.c:735-744 inspects the rendered character array, not the raw boolean flags
  • The server-side format_iflags() and render/itemize.rs already handled both cases correctly; only the public format_itemize() API was affected
  • Add 25 golden output tests verifying character-by-character parity with upstream rsync 3.4.1 log.c

Test plan

  • CI passes fmt+clippy, nextest on all platforms
  • New golden_upstream tests verify all itemize positions match upstream log.c
  • Existing tests continue to pass unchanged

@github-actions github-actions Bot added the bug Something isn't working label Mar 21, 2026
@oferchen
oferchen force-pushed the fix/itemize-output-format branch from 4e63f7c to 8be7425 Compare March 22, 2026 06:55
@oferchen
oferchen merged commit a6caf87 into master Mar 22, 2026
17 of 31 checks passed
@oferchen
oferchen deleted the fix/itemize-output-format branch March 22, 2026 09:00
oferchen added a commit that referenced this pull request May 1, 2026
* fix: align itemize output format with upstream rsync log.c

* style: fix cargo fmt formatting
oferchen added a commit that referenced this pull request May 5, 2026
* fix: align itemize output format with upstream rsync log.c

* style: fix cargo fmt formatting
oferchen added a commit that referenced this pull request May 25, 2026
Selects option (a) xattr-passthrough as the official strategy for
NTFS alternate data streams on Windows. Surfaces ADS as
`user.windows.ads.<streamname>` xattrs via the existing `-X` pipeline,
matching upstream rsync's Cygwin default when `-X` is omitted.

Defines concrete acceptance criteria for WPC-3 (#2905) and the
deferred regression test in WPC-4 (#2906). Includes rejected
alternatives, rollback criteria, and cross-platform receiver
behaviour.
oferchen added a commit that referenced this pull request Aug 24, 2026
Selects option (a) xattr-passthrough as the official strategy for
NTFS alternate data streams on Windows. Surfaces ADS as
`user.windows.ads.<streamname>` xattrs via the existing `-X` pipeline,
matching upstream rsync's Cygwin default when `-X` is omitted.

Defines concrete acceptance criteria for WPC-3 (#2905) and the
deferred regression test in WPC-4 (#2906). Includes rejected
alternatives, rollback criteria, and cross-platform receiver
behaviour.
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