ls: fix color of broken symlinks colored as target
commitb7f2b51c42edabd516c5ecc748a654da736c912c
authorEric Blake <ebb9@byu.net>
Fri, 1 Jan 2010 14:39:29 +0000 (1 07:39 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 1 Jan 2010 20:41:46 +0000 (1 13:41 -0700)
tree75db10733b43f2bb3c46abc58b3384e77191f8af
parent84db964925680c912c601f616d4ab07f7bc19c3c
ls: fix color of broken symlinks colored as target

* src/ls.c (print_color_indicator): When using 'LINK target' in
dircolors, treat broken symlink as C_ORPHAN.
* tests/misc/ls-misc (sl-dangle2, sl-dangle3, sl-dangle4)
(sl-dangle5): Test for it, and add more coverage.
* NEWS: Document it.
* THANKS: Update.
Reported by Chris Jones.
NEWS
THANKS
src/ls.c
tests/misc/ls-misc