Bug 236311

Summary: coreutils shows good links as dangling
Product: [Fedora] Fedora Reporter: Sammy <umar>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: meyering
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.97-12.5.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-19 04:24:09 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
Color definitions file none

Description Sammy 2007-04-12 20:08:45 EDT
Description of problem:

After updating to coreutils 5.97-12.4.fc6 good symlinks show as dangling.
I am using "ls -bCAF --color". Downgrading to 12.3 does not have this
problem.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Tim Waugh 2007-04-13 07:48:25 EDT
I can't reproduce this.  Please give a test case.
Comment 2 Sammy 2007-04-13 09:35:41 EDT
Created attachment 152541 [details]
Color definitions file
Comment 3 Sammy 2007-04-13 09:36:53 EDT
I have investigated this further and found the following:

In /etc/DIR_COLORS and /etc/DIR_COLORS.xterm I have set:

          ORPHAN 01;05;37;41  # orphaned syminks

where 05=blink and others colors. This shows the orphaned syminks as
blinking bold white on red backgorund. Otherwise regular symlinks show
as cyan.

With the latest upgrade and using "ls --color" all symlinks are blinking BUT
if I comment this line in DIRCOLORS then the orphaned symlinks show as cyan
(no different than non orphaned) except when you do ls -l, in which case
only the link target itself shows as blinking, which is correct because I set
missing files to blink as well. I am going to attach my DIR_COLORS.
Comment 4 Tim Waugh 2007-04-17 07:51:12 EDT
Test case:

rm -rf arena
mkdir arena
cd arena
touch file
ln -s file symlink
/bin/ls --color | cat -vet

Actual result:
^[[00m^[[00mfile^[[00m$
^[[01;05;37;41msymlink^[[00m$

Expected result:
^[[00m^[[00mfile^[[00m$
^[[00;36msymlink^[[00m$

Should be fixed in coreutils-5.97-12.5.fc6, shortly to appear in
updates-testing.  Thanks for catching this.
Comment 5 Fedora Update System 2007-04-18 18:37:48 EDT
Fixed in update: coreutils-5.97-12.5.fc6