ls: consistently quote symlink targets
commitac2eebc224e859862e86645664ad43caebbb0bd3
authorPádraig Brady <P@draigBrady.com>
Thu, 24 Aug 2017 07:18:41 +0000 (24 00:18 -0700)
committerPádraig Brady <P@draigBrady.com>
Fri, 25 Aug 2017 02:26:32 +0000 (24 19:26 -0700)
tree3be327ed80ea3d8b4089e0ce618c678366e19440
parent5ee49fea85cad878db0e99cc06e25121574e3316
ls: consistently quote symlink targets

* src/ls.c (gobble_file): Disable the optimization to avoid quoting
if the symlink target itself needs quoting.  This was introduced
with the quoting alignment adjustments in v8.25-106-g01971c0
* tests/ls/symlink-quote.sh: Add a test.
* tests/local.mk: Reference the test.
* NEWS: Mention the fix.
NEWS
src/ls.c
tests/local.mk
tests/ls/symlink-quote.sh [new file with mode: 0755]