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
--- /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')"

Reply via email to