On 01/12/2026 04:30, Collin Funk wrote:
This fixes a bug introduced by unreleased commit 38aaf5e61 (all: quote
more user originated strings, 2026-10-23):

     $ printf 'TERM *\nUNRECOGNIZED 1\n' >f
     $ dircolors -b f
     dircolors: f:2: unrecognized keyword f
     $ ./src/dircolors -b f
     dircolors: f:2: unrecognized keyword 'UNRECOGNIZED'

* src/dircolors.c (dc_parse_stream): Use quote_n and specify slot 1
instead of reusing slot 0.
* tests/misc/dircolors.pl (@Tests): Add a test case for this error
message.

Discovered by Anthropic's OSS Scanner, as bug ANT-2026-HF7FSPZD.

cheers,
Padraig.

Reply via email to