Repository navigation
Add short-option clustering and interop CI harness - #1904
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| archive, | ||
| recursive: _recursive, | ||
| delete_mode, |
There was a problem hiding this comment.
Forward --recursive to fallback arguments
The parser now populates a recursive field when -r (or -a) is present, but the execution layer immediately destructures it into _recursive and drops the value. Because FallbackArgumentsContext and the downstream fallback builders never receive this flag, any transfer that falls back to upstream rsync ignores a user-supplied -r and only processes the top-level files. This diverges from upstream semantics and breaks recursive copies during fallback. Thread recursive through the fallback context so the spawned rsync binary receives -r when requested.
Useful? React with 👍 / 👎.
…) (#3559) The daemon parsed `fake super = yes` from `rsyncd.conf(5)` into `ModuleConfig.fake_super` but never threaded it into the transfer pipeline. Receivers therefore tried real chown() regardless of the module directive, which silently dropped ownership for non-root daemons and contradicted upstream's `clientserver.c:1106-1107` behaviour where `fake super = yes` demotes the receiver's am_root and forces fake-super semantics on the wire. Wire-up path: ModuleConfig.fake_super -> ServerConfig.fake_super (transfer/config) -> MetadataOptions.fake_super (receiver/transfer.rs) -> apply_ownership_via_fake_super (writes user.rsync.%stat) -> create_*_with_fake_super placeholders for special files Changes: - transfer/config/mod.rs: add `pub fake_super: bool` to ServerConfig with upstream citation and default false. - transfer/config/builder.rs: add `.fake_super(bool)` builder method matching the existing `&mut self -> &mut Self` style. - transfer/config/builder_tests.rs: assert default false and round-trip through the builder. - daemon/sections/module_access/client_args.rs: in `build_server_config`, set `cfg.fake_super = module.fake_super` after the iconv wire-up. Per upstream, the directive is purely daemon-config-driven; client `--fake-super` is demoted to `--super` on the wire and never reaches the server-side parser. - transfer/receiver/transfer.rs: call `.fake_super(self.config.fake_super)` on the MetadataOptions builder so the receiver routes ownership writes into the user.rsync.%stat xattr instead of chown(). - daemon/tests/chunks/daemon_fake_super_module_push.rs: end-to-end test that pushes a file with `-og` to a daemon module configured with `fake super = yes` and asserts the destination carries the user.rsync.%stat xattr. Upstream references: - clientserver.c:1106-1107: `fake super = yes` demotes am_root and rewrites client `--fake-super` to honour the daemon directive. - loadparm.c: `fake super` module parameter parsing. - rsync.c:set_file_attrs(): fake-super stores ownership in xattrs. - xattrs.c:set_stat_xattr(): user.rsync.%stat encoding. Closes #1904.
…) (#3559) The daemon parsed `fake super = yes` from `rsyncd.conf(5)` into `ModuleConfig.fake_super` but never threaded it into the transfer pipeline. Receivers therefore tried real chown() regardless of the module directive, which silently dropped ownership for non-root daemons and contradicted upstream's `clientserver.c:1106-1107` behaviour where `fake super = yes` demotes the receiver's am_root and forces fake-super semantics on the wire. Wire-up path: ModuleConfig.fake_super -> ServerConfig.fake_super (transfer/config) -> MetadataOptions.fake_super (receiver/transfer.rs) -> apply_ownership_via_fake_super (writes user.rsync.%stat) -> create_*_with_fake_super placeholders for special files Changes: - transfer/config/mod.rs: add `pub fake_super: bool` to ServerConfig with upstream citation and default false. - transfer/config/builder.rs: add `.fake_super(bool)` builder method matching the existing `&mut self -> &mut Self` style. - transfer/config/builder_tests.rs: assert default false and round-trip through the builder. - daemon/sections/module_access/client_args.rs: in `build_server_config`, set `cfg.fake_super = module.fake_super` after the iconv wire-up. Per upstream, the directive is purely daemon-config-driven; client `--fake-super` is demoted to `--super` on the wire and never reaches the server-side parser. - transfer/receiver/transfer.rs: call `.fake_super(self.config.fake_super)` on the MetadataOptions builder so the receiver routes ownership writes into the user.rsync.%stat xattr instead of chown(). - daemon/tests/chunks/daemon_fake_super_module_push.rs: end-to-end test that pushes a file with `-og` to a daemon module configured with `fake super = yes` and asserts the destination carries the user.rsync.%stat xattr. Upstream references: - clientserver.c:1106-1107: `fake super = yes` demotes am_root and rewrites client `--fake-super` to honour the daemon directive. - loadparm.c: `fake super` module parameter parsing. - rsync.c:set_file_attrs(): fake-super stores ownership in xattrs. - xattrs.c:set_stat_xattr(): user.rsync.%stat encoding. Closes #1904.
Summary
Testing