On Thu, 8 Dec 2022 12:10:27 +0000 Richard Lewis
<richard.lewis.deb...@googlemail.com> wrote:
> On Thu, 1 Dec 2022, 15:06 Peter Gervai, <g...@grin.hu> wrote:

> > Would be nice to skip extremely large >directories which the admin choose
> to skip in >the scan.
> >Typical examples are /var/lib/backuppc or >similar backup dirs, or various
> large mounts.


I think the best way to do this is to use the existing ${findargs} and
-e options, surely we can simply
do a 1-line change

    -e)     shift
 +          findargs="${findargs} -path '$1' -prune -o"
             EXCLUDES="$1 $EXCLUDES";;

and then -e will apply to tests using $find (as long as they use
$findargs -- this will be the case in future versions) as well as
those that use lookfor_rootkit()
no need for new options. ie you can do -e /var/lib/backuppc

Otherwise you have to guess whether to use -e or -E

Reply via email to