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
..
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:41:29 +01:00
2011-06-17 09:17:37 +02:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-09-02 14:08:40 +02:00
2011-08-31 20:00:19 +02:00
2011-04-28 22:43:56 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-04-04 18:21:32 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:12:38 +02:00
2011-10-01 02:15:12 +01:00
2011-08-08 10:11:48 +02:00
2011-07-07 16:42:47 +02:00
2011-09-16 19:09:26 +01:00
2011-04-28 22:43:56 +02:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:41:29 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-09-01 16:36:23 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-09-01 16:36:23 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-09-02 14:08:40 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-08-08 10:11:48 +02:00
2011-06-18 08:34:07 +02:00
2011-05-06 08:07:46 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-06-17 09:17:37 +02:00
2011-09-27 16:49:51 +02:00
2011-08-08 10:11:48 +02:00
2011-06-19 09:16:20 +02:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-09-02 14:08:40 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-03-22 07:13:59 +01:00
2011-01-01 22:16:47 +01:00
2011-07-17 12:52:55 -07:00
2011-07-08 13:54:08 +01:00
2011-07-25 12:00:26 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-04-28 22:43:56 +02:00
2011-07-20 10:38:46 +01:00
2011-04-28 22:43:56 +02:00
2011-01-17 19:07:58 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-08-08 10:11:48 +02:00
2011-01-01 22:16:47 +01:00