]>
Commit | Line | Data |
---|---|---|
72eb62e9 MK |
1 | diff -urNp -x '*.orig' logcheck.org/src/logcheck logcheck/src/logcheck |
2 | --- logcheck.org/src/logcheck 2019-03-01 22:42:31.000000000 +0100 | |
3 | +++ logcheck/src/logcheck 2024-04-01 17:57:58.482699080 +0200 | |
4 | @@ -75,7 +75,7 @@ STATEDIR="/var/lib/logcheck" | |
414394ed | 5 | LOGFILES_LIST="/etc/logcheck/logcheck.logfiles" |
72eb62e9 | 6 | LOGFILES_LIST_D="/etc/logcheck/logcheck.logfiles.d" |
414394ed | 7 | LOGFILE_FALLBACK="/var/log/syslog" |
b39384e3 | 8 | -LOGTAIL="/usr/sbin/logtail2" |
9 | +LOGTAIL="/usr/bin/logtail2" | |
414394ed MWP |
10 | CAT="/bin/cat" |
11 | SYSLOG_SUMMARY="/usr/bin/syslog-summary" | |
12 | ||
72eb62e9 | 13 | @@ -214,7 +214,7 @@ cleanrules() { |
414394ed | 14 | |
72eb62e9 | 15 | if [ -d "$dir" ]; then |
877a487c | 16 | if [ ! -d "$cleaned" ]; then |
17 | - mkdir "$cleaned" \ | |
18 | + install -d "$cleaned" \ | |
414394ed MWP |
19 | || error "Could not make dir $cleaned for cleaned rulefiles." |
20 | fi | |
e5b59dba | 21 | # run-parts doesn't include files which are not readable. Use this |
72eb62e9 | 22 | @@ -633,7 +633,7 @@ trap 'cleanup' 0 |
414394ed MWP |
23 | |
24 | debug "Trying to get lockfile: $LOCKFILE.lock" | |
877a487c | 25 | if [ ! -d "$LOCKDIR" ]; then |
26 | - mkdir -m 0755 "$LOCKDIR" | |
27 | + install -d -m 0755 "$LOCKDIR" | |
414394ed | 28 | fi |
877a487c | 29 | lockfile-create --retry 1 "$LOCKFILE" > /dev/null 2>&1 |
414394ed | 30 | |
72eb62e9 | 31 | @@ -676,7 +676,7 @@ fi |
414394ed MWP |
32 | |
33 | # Get the list of log files from config file | |
34 | # Handle log rotation correctly, idea taken from Wiktor Niesiobedzki. | |
877a487c | 35 | -mkdir "$TMPDIR/logoutput" \ |
36 | +install -d "$TMPDIR/logoutput" \ | |
414394ed | 37 | || error "Could not mkdir for log files" |
72eb62e9 MK |
38 | LOGFILES=$(ls -1d "$LOGFILES_LIST" "$LOGFILES_LIST_D"/*.logfiles 2>/dev/null) |
39 | if [ ! "$LOGFILE" ] && [ -n "$LOGFILES" ]; then |