ls: make it possible to disable file capabilities checking
commitf3f1ccfd871ee395e7fafc051c1b7dedb39fdfc9
authorKamil Dudka <kdudka@redhat.com>
Mon, 20 Oct 2008 13:39:07 +0000 (20 15:39 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 21 Oct 2008 09:13:01 +0000 (21 11:13 +0200)
tree254aa4f6efeaa1a49fe2b5d7c51806d166d1182d
parent08c38ab7cbc0c6f3721885256ae3634f1e76f174
ls: make it possible to disable file capabilities checking

* 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.
src/ls.c