Skip to content

fix: handle /dev/full write errors gracefully#10062

Merged
sylvestre merged 1 commit intouutils:mainfrom
naoNao89:fix/issue-9769-dev-full-panic
Jan 6, 2026
Merged

fix: handle /dev/full write errors gracefully#10062
sylvestre merged 1 commit intouutils:mainfrom
naoNao89:fix/issue-9769-dev-full-panic

Conversation

@naoNao89
Copy link
Contributor

@naoNao89 naoNao89 commented Jan 5, 2026

hehe, i think this very simple fix if correct 😅

just changed .unwrap() to let _ = in error.rs. now utilities don't panic when writing to /dev/full, they exit gracefully like GNU coreutils does.

one line fix + regression test. affects 20+ utilities.

Fixes #9769

Loading
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.

Many utils: command subcommand --arg > /dev/full panics

3 participants