* ls.c (print_color_indicator): Do not check for file capability
if that attribute is not being colored.
Since
84f6abfe00b4ab533145623638b417a2221f9c75, ls --color would check
each file for "capabilities". In <http://bugzilla.redhat.com/467508>,
James Antill reported that ls --color seemed slower with capabilities
detection.
type = C_SETUID;
else if ((mode & S_ISGID) != 0)
type = C_SETGID;
- else if (has_capability (name))
+ else if (is_colored (C_CAP) && has_capability (name))
type = C_CAP;
else if ((mode & S_IXUGO) != 0)
type = C_EXEC;