[Logcheck-devel] cleanrules() fuction & run-parts

Lukasz Buko look at terror.org.pl
Fri Jan 19 16:50:29 UTC 2007


Hi Devs,

First of all thank you for this great logcheck tool ! :-)

There is a small glitch in logcheck-1.2.45 (didn't check previous
versions thou)

The /usr/sbin/run-parts script seems to be not compatible between
different Linux distros. Under RedHat EL and Fedora Core it does not support
--list option (moreover it does not support any option except
for the dirname ;-).

It harms the following part in cleanrules() function:

      for rulefile in $(run-parts --list $dir); do

The function is unable to parse any of the rulefiles under 
/etc/logcheck/ignore.d* then :-(

The simplest solution i could think of is to substitute run-parts
with ls. It works for me:

      for rulefile in $(ls -1 $dir); do

Regards,

-- 
Lukasz 'look' Buko
Network Administrator




More information about the Logcheck-devel mailing list