Repository navigation
fix: use shared base directory for --files-from file list building - #2746
Merged
Merged
Conversation
The generator's build_file_list treated each --files-from path as its own base directory, producing entries with empty relative names. This caused the daemon receiver to receive files with no name, resulting in exit code 23 (partial transfer) during interop tests. Add build_file_list_with_base() that uses the source directory (argv[0]) as a shared base for all listed files, matching upstream rsync's chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now computed correctly by stripping the common base prefix. Remove oc:files-from from KNOWN_FAILURES in the interop harness.
oferchen
force-pushed
the
fix/files-from-interop
branch
from
March 17, 2026 01:16
d48618f to
e7b5e4c
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…2746) * fix: use shared base directory for --files-from file list building The generator's build_file_list treated each --files-from path as its own base directory, producing entries with empty relative names. This caused the daemon receiver to receive files with no name, resulting in exit code 23 (partial transfer) during interop tests. Add build_file_list_with_base() that uses the source directory (argv[0]) as a shared base for all listed files, matching upstream rsync's chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now computed correctly by stripping the common base prefix. Remove oc:files-from from KNOWN_FAILURES in the interop harness. * style: fix rustfmt formatting in file_list and tests * style: fix rustfmt formatting for CI stable
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…2746) * fix: use shared base directory for --files-from file list building The generator's build_file_list treated each --files-from path as its own base directory, producing entries with empty relative names. This caused the daemon receiver to receive files with no name, resulting in exit code 23 (partial transfer) during interop tests. Add build_file_list_with_base() that uses the source directory (argv[0]) as a shared base for all listed files, matching upstream rsync's chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now computed correctly by stripping the common base prefix. Remove oc:files-from from KNOWN_FAILURES in the interop harness. * style: fix rustfmt formatting in file_list and tests * style: fix rustfmt formatting for CI stable
This was referenced May 24, 2026
Merged
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
build_file_listtreated each--files-frompath as its own base directory inwalk_path(base, path), producing file entries with empty relative names. This caused exit code 23 (partial transfer) in daemon push interop tests.build_file_list_with_base()that uses the source directory (argv[0]) as a shared base for all listed files, matching upstream rsync'schdir(argv[0])behavior inflist.c:2240-2264.oc:files-fromfromKNOWN_FAILURESin the interop harness.Test plan
oc:files-fromscenario (previously a known failure)build_file_list_with_baseproduces correct relative names