Files
coreutils/src
Pádraig Brady a04ddb8dd3 ls: fix coloring of dangling symlinks in default listing mode
When listing a directory containing dangling symlinks,
and not outputting a long format listing, and orphaned links
are set to no coloring in LS_COLORS, then the symlinks
would get no color rather than reverting to the standard
symlink color.  The issue was introduced in v8.13-19-g84457c4

* src/ls.c (print_color_indicator): Use the standard method
to check if coloring is specified for orphaned symlinks.
The existing method would consider 'or=00' or 'or=0' as significant
in LS_COLORS. Even 'or=' was significant as in that case the
string='or=' and the length=0.  Also apply the same change
for missing symlinks for consistency.
(gobble_file): Remove the simulation of linkok, which is only
tested in print_color_indicator() which now handles this directly
by keying on the LS_COLORS values correctly.
* tests/misc/ls-misc.pl: Add a test case.
* THANKS: Add the reporter.
* NEWS: Mention the fix.
Reported-by: David Matei
2012-09-16 11:41:50 +01:00
..
2012-09-01 21:28:12 +02:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2008-11-20 10:21:52 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2005-07-18 07:52:37 +00:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2003-07-06 06:08:40 +00:00
2012-01-27 11:35:24 +01:00
2012-03-22 20:51:20 +00:00
…
…
…
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-10 11:02:42 +02:00
2012-01-27 11:35:24 +01:00
2012-07-15 19:11:45 +02:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-08-04 11:32:01 +02:00
2012-09-06 08:31:26 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-08-03 14:54:01 +02:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-07-15 19:11:45 +02:00
2012-01-27 11:35:24 +01:00