You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oc client -s --iconv pull from an rsync 3.5.2 daemon exits 23 #8877
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