bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12445: ls --color does not color symlinks when not resolving them


From: Pádraig Brady
Subject: bug#12445: ls --color does not color symlinks when not resolving them
Date: Sat, 15 Sep 2012 00:55:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

tag 12445 + notabug
close 12445
stop

On 09/14/2012 05:54 PM, Matei David wrote:
When the ORPHAN property is disabled in dircolors, ls --color does not stat()
symlinks. However, in this case symlinks are not colored using the LINK
property.

How to reproduce:
$ eval $(dircolors -p | sed 's/^ORPHAN.*/ORPHAN 00/' | dircolors -)
$ mkdir /tmp/xxx
$ ln -s /tmp/nowhere /tmp/xxx/yyy
$ ls --color /tmp/xxx

Expected output:
yyy, colored cyan (default for LINK)

Actual output:
yyy, not colored

Fix attached. Basically, in gobble_file(), assume a symlink is ok if stat() is
not run on it.

It seems this was fixed over 5 years ago in version 6.9
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=0a744370
Are you using an older version than that?

I'm marking as done for now.

thanks,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]