Skip to content

fix: detect secluded-args flag in compact flag strings for protocol 28/29 - #2760

Merged
oferchen merged 1 commit into
masterfrom
fix/proto-28-29-daemon
Mar 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/proto-28-29-daemon

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Upstream rsync uses popt which handles -s both standalone and bundled in compact flag strings like -logDtprs
  • Our daemon only checked for standalone -s, causing protocol 28/29 clients to fail the secluded-args handshake
  • Add has_secluded_args_flag() helper that detects -s in standalone, compact, and long-option forms
  • Includes 7 unit tests covering all detection cases

Test plan

  • CI interop tests pass with protocol 28/29 clients
  • All required CI checks pass (fmt, clippy, nextest, Windows, macOS, musl)

…8/29

Upstream rsync uses popt which handles both standalone `-s` and bundled
short options like `-logDtprs`. Our daemon only checked for standalone
`-s`, causing protocol 28/29 clients (rsync 3.0.x, 3.1.x) that bundle
the flag into compact strings to fail the secluded-args handshake.

Add `has_secluded_args_flag()` helper that detects `-s` in both
standalone and compact forms, plus `--protect-args` and
`--secluded-args` long options.
@github-actions github-actions Bot added the bug Something isn't working label Mar 17, 2026
@oferchen
oferchen merged commit b2f9315 into master Mar 17, 2026
31 of 32 checks passed
@oferchen
oferchen deleted the fix/proto-28-29-daemon branch March 17, 2026 05:55
oferchen added a commit that referenced this pull request May 1, 2026
…8/29 (#2760)

Upstream rsync uses popt which handles both standalone `-s` and bundled
short options like `-logDtprs`. Our daemon only checked for standalone
`-s`, causing protocol 28/29 clients (rsync 3.0.x, 3.1.x) that bundle
the flag into compact strings to fail the secluded-args handshake.

Add `has_secluded_args_flag()` helper that detects `-s` in both
standalone and compact forms, plus `--protect-args` and
`--secluded-args` long options.
oferchen added a commit that referenced this pull request May 5, 2026
…8/29 (#2760)

Upstream rsync uses popt which handles both standalone `-s` and bundled
short options like `-logDtprs`. Our daemon only checked for standalone
`-s`, causing protocol 28/29 clients (rsync 3.0.x, 3.1.x) that bundle
the flag into compact strings to fail the secluded-args handshake.

Add `has_secluded_args_flag()` helper that detects `-s` in both
standalone and compact forms, plus `--protect-args` and
`--secluded-args` long options.
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