Skip to content

Add helper to drain sniffed negotiation prefix - #291

Merged
oferchen merged 1 commit into
masterfrom
create-rsync-full-specification-and-guidelines
Oct 16, 2025
Merged

oferchen merged 1 commit into
masterfrom
create-rsync-full-specification-and-guidelines

Conversation

@oferchen

@oferchen oferchen commented Oct 16, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add NegotiationPrologueSniffer::take_sniffed_prefix_into to drain the sniffed prefix while retaining any buffered remainder
  • cover legacy, binary, and incomplete-prefix behaviours with focused unit tests

Testing

  • cargo test

@oferchen
oferchen merged commit 96bdaf3 into master Oct 16, 2025
@oferchen
oferchen deleted the create-rsync-full-specification-and-guidelines branch October 16, 2025 20:53
oferchen added a commit that referenced this pull request Feb 22, 2026
Add ATTRS_SKIP_MTIME, ATTRS_SKIP_ATIME, ATTRS_SKIP_CRTIME,
ATTRS_REPORT, and ATTRS_ACCURATE_TIME flags matching upstream
rsync.h:192-196. These control which time attributes are skipped
when applying metadata, central to --modify-window and
omit_dir_times/omit_link_times behavior.

Add apply_metadata_with_attrs_flags() that respects these flags,
mirroring upstream set_file_attrs() in rsync.c:574-625.
oferchen added a commit that referenced this pull request Feb 22, 2026
…2442)

Add ATTRS_SKIP_MTIME, ATTRS_SKIP_ATIME, ATTRS_SKIP_CRTIME,
ATTRS_REPORT, and ATTRS_ACCURATE_TIME flags matching upstream
rsync.h:192-196. These control which time attributes are skipped
when applying metadata, central to --modify-window and
omit_dir_times/omit_link_times behavior.

Add apply_metadata_with_attrs_flags() that respects these flags,
mirroring upstream set_file_attrs() in rsync.c:574-625.
oferchen added a commit that referenced this pull request May 1, 2026
…2442)

Add ATTRS_SKIP_MTIME, ATTRS_SKIP_ATIME, ATTRS_SKIP_CRTIME,
ATTRS_REPORT, and ATTRS_ACCURATE_TIME flags matching upstream
rsync.h:192-196. These control which time attributes are skipped
when applying metadata, central to --modify-window and
omit_dir_times/omit_link_times behavior.

Add apply_metadata_with_attrs_flags() that respects these flags,
mirroring upstream set_file_attrs() in rsync.c:574-625.
oferchen added a commit that referenced this pull request May 5, 2026
…2442)

Add ATTRS_SKIP_MTIME, ATTRS_SKIP_ATIME, ATTRS_SKIP_CRTIME,
ATTRS_REPORT, and ATTRS_ACCURATE_TIME flags matching upstream
rsync.h:192-196. These control which time attributes are skipped
when applying metadata, central to --modify-window and
omit_dir_times/omit_link_times behavior.

Add apply_metadata_with_attrs_flags() that respects these flags,
mirroring upstream set_file_attrs() in rsync.c:574-625.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant