[Logcheck-devel] Bug#877182: logcheck: command-line option -D advertised but not recognized

Daniel Reichelt debian at nachtgeist.net
Fri Sep 29 14:05:39 UTC 2017


Package: logcheck
Version: 1.3.18
Severity: normal

Hi,


----------------8<----------------
# sudo -u logcheck logcheck -to -D some_path
/usr/sbin/logcheck: illegal option -- D
usage: logcheck [-c CFG] [-d] [-h] [-H HOST] [-l LOG] [-L CFG] [-D DIR] [-m MAIL] [-o]
                [-r DIR] [-s|-p|-w] [-R] [-S DIR] [-t] [-T] [-u]
 -c CFG       = override default configuration file
 -d           = debug mode
[...]
---------------->8----------------


The attached patch fixes the getopt options string.



Thanks,

Daniel
-------------- next part --------------
--- /usr/sbin/logcheck.orig	2017-09-29 16:02:27.026934660 +0200
+++ /usr/sbin/logcheck	2017-09-29 16:02:34.374951541 +0200
@@ -47,7 +47,7 @@
 ATTACK=0
 
 # Set the getopts string
-GETOPTS="c:dhH:l:L:m:opr:RsS:tTuvw"
+GETOPTS="c:dhH:l:L:D:m:opr:RsS:tTuvw"
 
 # Get the details for the email message
 DATE="$(date +'%Y-%m-%d %H:%M %z')"


More information about the Logcheck-devel mailing list