[PATCH] ls: make possible to stop file capabilities checking
From:
Kamil Dudka
Subject:
[PATCH] ls: make possible to stop file capabilities checking
Date:
Mon, 20 Oct 2008 15:54:42 +0200
User-agent:
KMail/1.9.9
Colorizing file with capabilities has some performance impact (rhbz #467508).
It should be possible to stop checking for file capabilities by unsetting ca
attribute of $LS_COLORS. One-line patch solving this issue is attached.
Simple test:
$ strace ls --color 2> tmp && grep -i cap tmp --color
$ eval `dircolors -b | sed s/ca=[^:]*:/ca=:/` # disable checking for file caps
$ strace ls --color 2> tmp && grep -i cap tmp --color
Kamil