HomeFreeBSD

diff: Report I/O errors in Stone algorithm

Description

diff: Report I/O errors in Stone algorithm

In the legacy Stone algorithm, we do a first pass over the files to
check if they're identical before we start diffing them. That code
would correctly set the exit status if an I/O error was encountered,
but would not emit an error message. Do so.

Approved by: re (cperciva)
PR: 292198
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: thj
Differential Revision: https://reviews.freebsd.org/D55125

(cherry picked from commit f8c12e6e3874cdd353fb16785da6f4e7eb134cd9)
(cherry picked from commit 37ceb8794c22d88a41e261d23d347bc7ac08b2c8)

Details

Provenance
desAuthored on Feb 5 2026, 5:41 PM
cpercivaCommitted on Feb 11 2026, 6:14 AM
Reviewer
thj
Differential Revision
D55125: diff: Report I/O errors in Stone algorithm
Parents
rG7cf7c711d979: diff: Correctly declare tests
Branches
Unknown
Tags
Unknown