Repository navigation
fix: report OS errors as strerror (errno) like 3.5.1's rsyserr - #8354
Merged
Merged
Conversation
oferchen
force-pushed
the
fix/os-error-text
branch
4 times, most recently
from
November 11, 2026 10:31
338ec9b to
ba2cfe7
Compare
oferchen
force-pushed
the
fix/os-error-text
branch
4 times, most recently
from
November 13, 2026 16:16
34193cb to
e86558a
Compare
oferchen
force-pushed
the
fix/os-error-text
branch
from
November 14, 2026 09:11
e86558a to
71167e9
Compare
…ext, and update Cygwin/Windows expectations
oferchen
added a commit
that referenced
this pull request
Nov 14, 2026
…odebase (#8381) Updates and cleans up root documentation against the current codebase and upstream rsync 3.5.1 reference:\n\n- **README.md**: Update required status check count from 15 to 16 and include `rustdoc links` to match the repository ruleset.\n- **SECURITY.md**: Remove stale claim that `--fake-super` is unimplemented (implemented in PR #8348; `daemon-namecvt-empty-response` passes on Linux non-root legs), and update cargo-fuzz target counts to 36 total / 26 in `fuzz/` (adding `connection_handoff`) / 31 daily sweep targets.\n- **CHANGELOG.md**: Add recent `[Unreleased]` entries (#8354, #8364, #8372, #8375) and remove stray blank lines inside `### Changed`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Report OS errors the way rsync 3.5.1 does. Every failed system call is rendered as
MESSAGE: strerror (errno)at the call site, from the raw errno, asrsyserr()does (log.c:480-500). Before this, Rust'sio::Errorrendering... (os error N)reached the user.logging::rsyserr/rsyserr_ioformat log.c'sPROG: [role] MSG: strerror (N).upstream_errno_textandupstream_strerrorgive thestrerror (N)tail and the barestrerrorfor sites where upstream prints the text without the number. The errno comes fromraw_os_error(), including through a taggedio::Error's payload.strerror. Both are generated from newlib-cygwin b5a7119 intocrates/logging/src/cygwin_errno.rs.failed to open files-from file %s: %s(options.c:2667);failed to open log-file %svia rsyserr, thenIgnoring "log file" setting., non-fatal as logfile_open (log.c:175-182);could not open password file %s(authenticate.c:246).failed to open %s(clientserver.c:306);failed to set socket option %s(socket.c:889).early exec preparation failed,pre-xfer exec preparation failed,name-converter exec preparation failed(clientserver.c:1000/1018/1027);chdir %s failed(:691);chroot test failed: %swith strerror only (:887);failed to open %sclude file %s(exclude.c:1714).bind() failed: %s(socket.c). rsync_io: OpenSSH'sCan't open user config file %s: %s, strerror only.mkdir %s failed(main.c:817), files-from, destination-root create. EILSEQ text for iconv skips.Gate
tests/os_error_text_gate.rs:OC_RSYNC_UPSTREAM_BIN_3_5_1set, that 3.5.1 prints the same text and errno.errno_text.rsspells Rust's os-error rendering.On master f7beb93 the gate fails 5 of 10 (files-from, password-file, log-file, early-input, and the static lint). Mutation: making
upstream_errno_textreturn the Display text fails 5 cells; reverting only the early-input site fails exactly that cell.Not in this PR
{e}sites: the per-crate batches.Test plan
cargo nextest run --test os_error_text_gatewith the 3.5.1 oracle: 10/10; on master 5 fail.No such file or directory (2), 5 ->Permission denied (13), 10061 ->Connection refused (111).