coreutils/tests
Pádraig Brady 84457c491e ls: fix output of dangling symlinks colored as target
This is related to commit b7f2b51c, 2010-01-01,
"ls: fix color of broken symlinks colored as target"
which didn't handle the --dereference case.
The simplest way to reproduce the resultant
erroneous "argetm" is as follows:

 $ ln -s /no-such dangle
 $ env LS_COLORS=ln=target ls --dereference --color
 ls: cannot access dangle: No such file or directory
 argetmdangle

This is also an issue with the `tree` utility,
reported here: http://bugs.debian.org/586765

* src/ls.c (print_color_indicator): Move the handling
of 'ln=target' in $LS_COLORS (color_symlink_as_referent == true)
to a higher scope, to handle all cases where type == C_LINK.
* tests/misc/ls-misc: Add a test case for the specific issue,
and 2 further test cases to verify other code paths in this area.

Reported by Jason Glassey.
2011-10-01 02:15:12 +01:00
..
chgrp tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
chmod tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
chown tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
cp tests: cp-parents: don't let a failing chmod go unnoticed 2011-09-19 10:53:45 +02:00
dd tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
df tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
du tests: avoid lack-of-support du test failure on HP-UX 11.31 2011-08-08 10:12:38 +02:00
id maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
install tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
ln tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
ls tests: remove require-perl script; use function instead 2011-09-02 14:08:40 +02:00
misc ls: fix output of dangling symlinks colored as target 2011-10-01 02:15:12 +01:00
mkdir tests: adjust PATH to include /sbin for mkfs-using tests 2011-09-07 18:00:55 +02:00
mv tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
pr pr: fix so that LAST_PAGE is honored with -T 2011-08-24 00:21:17 +01:00
readlink tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
rm tests: adjust PATH to include /sbin for mkfs-using tests 2011-09-07 18:00:55 +02:00
rmdir tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
split tests: split/l-chunk: avoid a portability issue 2011-09-01 15:43:25 +01:00
tail-2 tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
touch tests: complete the renaming framework_failure -> framework_failure_ 2011-08-08 10:11:48 +02:00
check.mk tests: make test runner a script, not a shell function 2011-06-19 21:57:43 +02:00
Coreutils.pm maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
CuSkip.pm tests: write skip explanation from perl scripts also to outer stderr 2011-04-28 22:43:56 +02:00
CuTmpdir.pm maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
d_type-check doc: fix typo in test script comment 2011-09-08 22:03:17 +02:00
envvar-check maint: update all copyright year number ranges 2011-01-01 22:16:47 +01:00
fiemap-capable test: improve the cp fiemap tests 2011-02-08 22:46:25 +00:00
filefrag-extent-compare tests: fix a false positive fiemap test on some file systems 2011-04-13 11:18:48 +01:00
init.cfg tests: mention new check-expensive/check-very-expensive in test logs 2011-09-24 13:17:22 +02:00
init.sh tests: init.sh: support any non-GNU diff 2011-09-19 19:24:46 +02:00
lang-default * tests/lang-default (LC_ALL): Set to "C", so we get 2006-08-16 20:11:42 +00:00
Makefile.am sort: avoid a NaN-induced infloop 2011-09-27 16:49:51 +02:00
other-fs-tmpdir tests: remove skip_test_ function; use new skip_ instead 2011-06-17 09:17:37 +02:00
sample-test build: update gnulib for version-etc copyright year update 2011-01-01 22:16:35 +01:00
shell-or-perl tests: remove obsolete 'error_' shell function 2011-08-04 18:07:52 +02:00