+
Skip to content

Conversation

yuankunzhang
Copy link
Contributor

Closes #8068.

The write_fast function was silently ignoring read errors due to using while let Ok(n) = handle.reader.read(&mut buf) pattern. When read() returned an Err, the loop would simply exit without propagating the error, potentially leading to incomplete output without any indication of failure.

This PR replaces the while-let pattern with proper match-based error handling that immediately returns read errors using Err(e) => return Err(e.into()).

Copy link

github-actions bot commented Jun 7, 2025

GNU testsuite comparison:

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

@cakebaker cakebaker merged commit e1f40ff into uutils:main Jun 13, 2025
115 of 116 checks passed
@cakebaker
Copy link
Contributor

Thanks!

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.

cat doesn't handle EPERM

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载