Skip to content

oc client -s --iconv pull from an rsync 3.5.2 daemon exits 23 #8877

Done

Description

@oferchen

Pulling from an rsync 3.5.2 daemon with an oc client and -s --iconv=UTF-8,ISO-8859-1 --files-from=LIST exits 23 and copies nothing. A 3.5.2 client in the same position exits 0. The result is the same on master before #8874, so this is a client-side difference.

What differs on the wire

  • oc client: sends --secluded-args --iconv=ISO-8859-1 in the first argument pass.
  • 3.5.2 client: sends -s inside its short-flag string and --iconv=UTF-8. rsync.c:119-123 truncates the option to the local charset before server_options() runs.

Why the 3.5.2 daemon then reads the list without converting it is not established yet.

Also seen in the same work

  • Non-UTF-8 names in sender errors: sender diagnostics are built as Rust Strings, so a non-UTF-8 name prints as caf\357\277\275 where 3.5.2 prints caf\#351. The file lookup itself uses the raw bytes.
  • Invalid UTF-8 name on a push: oc prints [receiver] cannot convert filename plus extra delete_file / could not make way lines. 3.5.2 prints [sender] cannot convert filename.

Target

  • First pass: send the first-pass arguments the way 3.5.2's server_options() does.
  • Cells: pull from a 3.5.2 daemon, with and without -s.
  • Diagnostics: fix the two diagnostic differences above, or split them into their own issues.

Activity

  1. added this to the v0.6.5 milestone on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions