Skip to content

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

@naoNao89 naoNao89 force-pushed the fix/issue-9769-dev-full-panic branch from b378518 to d0cfa2d Compare January 5, 2026 03:29
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Fixes uutils#9769

Changed error.print().unwrap() to let _ = error.print() to prevent
panic when writing to /dev/full. Added regression test in test_cat.rs.
@naoNao89 naoNao89 force-pushed the fix/issue-9769-dev-full-panic branch from d0cfa2d to 9cc2e09 Compare January 5, 2026 09:00
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit bc3b613 into uutils:main Jan 6, 2026
131 checks passed
@naoNao89 naoNao89 deleted the fix/issue-9769-dev-full-panic branch January 6, 2026 22:45
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

2 participants