1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

fmt: correctly diagnose read errors

* src/fmt.c (fmt): Pass errno to error() so that
the particular error is diagnosed.
* NEWS: Mention the improvement.
This commit is contained in:
Pádraig Brady
2026-01-13 02:01:11 +00:00
parent 06d228043f
commit 495e3528d7
2 changed files with 6 additions and 2 deletions

4
NEWS
View File

@@ -20,6 +20,10 @@ GNU coreutils NEWS -*- outline -*-
POSIX says this is not portable.
[bug introduced in fileutils-4.1.6]
'fmt' now correctly diagnoses read errors.
Previously fmt generated a generic error for any read error.
[bug introduced in coreutils-9.0]
md5sum --text correctly translates CRLF line endings with the MSYS2 runtime.
This also applies to the sha*sum and b2sum utilities.
[This bug was present in "the beginning".]