Skip to content

cp: don't panic on write error when printing --verbose output - #13310

Merged
cakebaker merged 1 commit into
uutils:mainfrom
Chaganti-Reddy:cp-verbose-write-error
Jul 8, 2026
Merged

cp: don't panic on write error when printing --verbose output#13310
cakebaker merged 1 commit into
uutils:mainfrom
Chaganti-Reddy:cp-verbose-write-error

Conversation

@Chaganti-Reddy

Copy link
Copy Markdown
Contributor

println! panics if the write fails, e.g. stdout redirected to a full disk. Buffered the output and made it return a normal error instead, matching GNU's wording.

Fixes #13060

@cakebaker
cakebaker merged commit ff3f37d into uutils:main Jul 8, 2026
177 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks for your PR!

@Chaganti-Reddy
Chaganti-Reddy deleted the cp-verbose-write-error branch July 21, 2026 04:07
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.

bug(cp): redirecting --verbose output to /dev/full will panic

2 participants