Skip to content

printf: omit errno from write errors - #13852

Merged
sylvestre merged 1 commit into
uutils:mainfrom
floze-the-genius:fix/13851-strip-write-error-errno
Aug 11, 2026
Merged

printf: omit errno from write errors#13852
sylvestre merged 1 commit into
uutils:mainfrom
floze-the-genius:fix/13851-strip-write-error-errno

Conversation

@floze-the-genius

Copy link
Copy Markdown
Contributor

Summary

  • strip Rust's trailing errno annotation from format write errors using the existing uucore helper
  • add a Linux regression that writes printf output to /dev/full and checks the exact diagnostic and exit status

Validation

  • cargo test --locked -p uucore --features format
  • cargo test --locked --features printf --no-default-features --test tests test_printf::
  • Linux Rust 1.88: 131 printf tests passed, 1 ignored
  • cargo clippy --locked --features printf --no-default-features --test tests -- -D warnings
  • cargo fmt --all -- --check

Closes #13851

@sylvestre
sylvestre merged commit 44f39db into uutils:main Aug 11, 2026
164 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uucore: write error message leaks '(os error N)' where GNU does not

2 participants