Skip to content

fix(daemon): parse --usermap/--groupmap from daemon client args - #5717

Merged
oferchen merged 1 commit into
masterfrom
fix/uts-8-groupmap-wild
Jun 11, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/uts-8-groupmap-wild

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Daemon's apply_long_form_args now consumes --usermap=SPEC / --groupmap=SPEC via metadata::UserMapping::parse / GroupMapping::parse. Before this change the daemon silently dropped the option and the receiver completed with unmapped ids - the regression captured by upstream's daemon-groupmap-wild test (rsync issue Add daemon hosts allow/deny enforcement for module access #829).
  • Threads user_mapping / group_mapping through ServerConfigBuilder so they reach TransferConfig. Malformed specs leave the field unset (matches upstream's daemon path, which falls through to default mapping rather than aborting).
  • Targets UTS-8.REOPEN daemon-groupmap-wild.

Status

Unvalidated WIP — not run against runtests.py before push. Reviewer/CI verifies.

Test plan

  • cargo nextest run -p daemon --all-features -E 'test(groupmap)'
  • Upstream testsuite daemon-groupmap-wild cell passes against the patched binary
  • safe_arg backslash escape path (URV-2.a) still produces correct wire bytes

@oferchen
oferchen merged commit 593d81c into master Jun 11, 2026
10 of 11 checks passed
@github-actions github-actions Bot added the bug Something isn't working label Jun 11, 2026
@oferchen
oferchen deleted the fix/uts-8-groupmap-wild branch June 12, 2026 14:39
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