dircolors: diagnose read errors
commita9bd274616a8d2e99736b498e657cda4e6954f3f
authorPádraig Brady <P@draigBrady.com>
Tue, 28 Mar 2023 13:24:29 +0000 (28 14:24 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 28 Mar 2023 13:24:29 +0000 (28 14:24 +0100)
tree490b4fbe787b29ce2fa18f0c4824b2d976f30580
parenta4525de1ef593cb3873eb88caa7279eb32669bda
dircolors: diagnose read errors

* NEWS: Mention the fix.
* src/dircolors.c: Fail upon read error from getline().
* tests/misc/dircolors.sh: Add a new test.
* tests/local.mk: Reference the new test.
NEWS
src/dircolors.c
tests/local.mk
tests/misc/dircolors.sh [new file with mode: 0755]