Repository navigation
feat: add AttrsFlags for selective time attribute application - #2442
Merged
Merged
Conversation
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.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds a libfuzzer target driving `parse_bandwidth_argument` and `parse_bandwidth_limit` with arbitrary UTF-8 input, covering the RATE[:BURST] CLI string surface flagged by FCV-15. Seeds the corpus with `100k`, `1.5m`, `0`, and `1g` to anchor the suffix and unlimited branches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AttrsFlagstype withSKIP_MTIME,SKIP_ATIME,SKIP_CRTIME,REPORT,ACCURATE_TIMEmatching upstreamrsync.h:192-196SKIP_ALL_TIMESconvenience combinationapply_metadata_with_attrs_flags()mirroring upstreamset_file_attrs()(rsync.c:574-625)apply_metadata_with_cached_stat()to delegate with empty flags (backward compatible)apply_atime_only_from_entry()forSKIP_MTIME+ preserve atime scenariosCloses #291
Test plan
AttrsFlagsconstant values, combinations, and upstream scenariosapply_metadata_with_attrs_flags()covering skip behaviorscargo fmtandcargo clippypass clean