Repository navigation
fix: apply upstream option interactions when --files-from is active - #2762
Merged
Merged
Conversation
When --files-from is specified, upstream rsync (options.c:2169-2188) applies three option interactions: 1. Recursion disabled (recurse = 0) 2. xfer_dirs enabled (xfer_dirs = 1) 3. Relative paths enabled by default (relative_paths = 1) Additionally, the server flag string builder now accounts for --files-from when computing effective recursive/relative flags, and the file list builder emits implied directory entries for paths with separators instead of a root "." entry.
upstream: options.c:2176-2177 sets xfer_dirs=1 when files_from is active, allowing individual file transfer without recursion.
upstream: options.c:2187-2188 implies --relative when --files-from is active, so subdir/nested.txt is preserved at dest/subdir/nested.txt.
3 of 4 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…2762) * fix: apply upstream option interactions when --files-from is active When --files-from is specified, upstream rsync (options.c:2169-2188) applies three option interactions: 1. Recursion disabled (recurse = 0) 2. xfer_dirs enabled (xfer_dirs = 1) 3. Relative paths enabled by default (relative_paths = 1) Additionally, the server flag string builder now accounts for --files-from when computing effective recursive/relative flags, and the file list builder emits implied directory entries for paths with separators instead of a root "." entry. * fix: enable xfer_dirs when --files-from is active upstream: options.c:2176-2177 sets xfer_dirs=1 when files_from is active, allowing individual file transfer without recursion. * test: fix files-from nested test to expect --relative path preservation upstream: options.c:2187-2188 implies --relative when --files-from is active, so subdir/nested.txt is preserved at dest/subdir/nested.txt.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…2762) * fix: apply upstream option interactions when --files-from is active When --files-from is specified, upstream rsync (options.c:2169-2188) applies three option interactions: 1. Recursion disabled (recurse = 0) 2. xfer_dirs enabled (xfer_dirs = 1) 3. Relative paths enabled by default (relative_paths = 1) Additionally, the server flag string builder now accounts for --files-from when computing effective recursive/relative flags, and the file list builder emits implied directory entries for paths with separators instead of a root "." entry. * fix: enable xfer_dirs when --files-from is active upstream: options.c:2176-2177 sets xfer_dirs=1 when files_from is active, allowing individual file transfer without recursion. * test: fix files-from nested test to expect --relative path preservation upstream: options.c:2187-2188 implies --relative when --files-from is active, so subdir/nested.txt is preserved at dest/subdir/nested.txt.
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
--files-fromis specified, upstream rsync (options.c:2169-2188) applies three option interactions that we were missing:recurse = 0)xfer_dirsenabled (xfer_dirs = 1)relative_paths = 1)--files-from--files-frominterop test failure (exit 23)Test plan
--files-fromtest case)