[Logcheck-devel] Bug#260330: Further bugs in command line parsing

Erich Schubert erich at debian.org
Mon Jul 19 23:04:18 UTC 2004


Hi,
there appear to be further bugs in command line parsing:
I tried:

logcheck -t -T -o -l /var/log/syslog

Which is expected to report to stdout. But it tries to execute sendmail.

logcheck -t -l /var/log/syslog -o -T -d

Did neither report to stdout (-o) nor run in debug mode.

The help message is also incorrect:

usage: logcheck [-c CFG] [-d] [-h] [-l CFG] [-o] [-r DIR] [-s|-p|-w] [-
S] [-t]
... missing, inconsistent or incorrect are:
 -l LOG       = run logfile through logcheck
 -L CFG       = overrule default logfiles list
 -m           = email the report to recipient
 -R           = adds Reboot: to email subject
 -T           = do not remove the TMPDIR
 -u           = enable syslog-summary

Have you noted, that the "mktemp" call contains unneded Xes?
you give the pattern logcheck.XXXXXXXX, but only the last 6 X will be
replaced by a random value.

Greetings,
Erich







More information about the Logcheck-devel mailing list