bug-coreutils
[Top][All Lists]
Advanced

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

[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

Attachment: 0001-ls-make-possible-to-stop-file-capabilities-checking.patch
Description: Text Data


reply via email to

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