Eric Blake <ebb9 <at> byu.net> writes:

> | None of my symlink targets have a color anymore:
> |
> | Reverting to coreutils 6.9-5 shows the link targets in color again,
> | and an strace on `ls -l y' shows the stat call for x.exe.
> 
> Thanks for the report; this is probably an upstream bug.  But I will try
> to investigate further.
> 

It looks like this commit is the culprit:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=0a74437

It looks like a true regression.  The change was introduced because of this 
thread:
http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00004.html
http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00079.html

It looks like when -l is NOT in effect, you should not stat the result of a 
symlink.  But when -l IS in effect, and C_EXEC is enabled, then the result of 
stat'ing the symling IS used, in order to color the symlink target differently 
than the color of the symlink.

-- 
Eric Blake





_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to