Skip to content

Commit 19cda2c

Browse files
committed
[Change] find option regextype is now dropped on FreeBSD for compatibility
[Change] report listing, '-e|--report list', now displays scan run time [Fix] importconf was not importing the value for import_config_url
1 parent 349cf2e commit 19cda2c

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ v1.6 | Feb 00 2017:
1919
these values can also be defined in sysconfig or cron/exec based config files and on CLI
2020
[New] sysconfig support through '/etc/sysconfig/maldet' or '/etc/default/maldet', system dependant, to
2121
allow easier configuration overrides; all conf.maldet and internals.conf variables supported
22+
[Change] report listing, '-e|--report list', now displays scan run time
2223
[Change] scan reports and cli outputs once again display simplified path definitions instead of expanded paths
2324
[Change] unified all clamav selection logic for data paths, running clamd processes, clam(d)scan CLI options etc...
2425
into a single function, clamselector(); this will make clam behavior more predictable across all functions
@@ -56,7 +57,7 @@ v1.6 | Feb 00 2017:
5657
[Change] .ca.def configuration template renamed importconf and now copied over during installation to
5758
'internals/importconf'
5859
[Change] new versions of 'chown' don't support use of . (dot) to separate user and group
59-
[Change] swap FreeBSD detection from '$OSTYPE' to 'uname -s'
60+
[Change] find option regextype is now dropped on FreeBSD for compatibility
6061
[Change] scan.tpl reporting template handles column spacing on filenames with spaces better
6162
[Change] CLI usage semantics of --include-regex and --exclude-regex now consistently passing to 'find' command
6263
[Change] moved all internal field separator line break modifications to lbreakifs()
@@ -75,8 +76,6 @@ v1.6 | Feb 00 2017:
7576
[Change] clamscan will now respect scan_max_filesize value instead of hardcoded 5M
7677
[Change] default scan_max_filesize increased from 768k to 2048k
7778
[Change] clamscan max-scansize for archive depth set as scan_max_filesize*2
78-
[Change] report listing, '-e|--report list', now displays scan run time
79-
[Fix] importconf was not importing the value for import_config_url
8079
[Fix] corrected typo with import_* variables causing configuration imports to fail
8180
[Fix] suppress eout() output for certain import_*() and get_remote_file() calls; this was causing
8281
false-positive hits for modsec integration
@@ -126,6 +125,7 @@ v1.6 | Feb 00 2017:
126125
[Fix] multiplying maldet monitor processes due to 'ps' command expansion under parent bash process on CentOS6
127126
[Fix] added default installation path to ignore_inotify to prevent monitor looping when '/' is scoped into
128127
monitoring mode; results in notify log filling disk space
128+
[Fix] importconf was not importing the value for import_config_url
129129

130130
v1.5 | Sep 19 2015:
131131
[New] added -f|--file-list CLI option to allow user supplied run-time file list for scanning

CHANGELOG.RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ v1.6 | Feb 00 2017:
5959
[Change] .ca.def configuration template renamed importconf and now copied over during installation to
6060
'internals/importconf'
6161
[Change] new versions of 'chown' don't support use of . (dot) to separate user and group
62-
[Change] swap FreeBSD detection from '$OSTYPE' to 'uname -s'
62+
[Change] find option regextype is now dropped on FreeBSD for compatibility
6363
[Change] scan.tpl reporting template handles column spacing on filenames with spaces better
6464
[Change] CLI usage semantics of --include-regex and --exclude-regex now consistently passing to 'find' command
6565
[Change] moved all internal field separator line break modifications to lbreakifs()

files/internals/internals.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ wget_proxy=""
2828

2929
wget=`which wget 2> /dev/null`
3030

31-
if [ "$(echo $OSTYPE | egrep 'FreeBSD')" ]; then
31+
if [ "$OSTYPE" == "FreeBSD" ]; then
3232
md5sum="/sbin/md5 -q"
3333
else
3434
md5sum=`which md5sum 2> /dev/null`
@@ -118,4 +118,5 @@ compatcnf="$libpath/compat.conf"
118118

119119
if [ "$OSTYPE" == "FreeBSD" ]; then
120120
sed="$sed -E"
121+
find_opts=""
121122
fi

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ ! -d "$inspath" ] && [ -d "files" ]; then
3939
done
4040
killall -SIGUSR2 clamd 2> /dev/null
4141
else
42-
if [ "$(ps -A --user root -o "cmd" | grep maldetect | grep inotifywait)" ]; then
42+
if [ "$(ps -A --user root -o "cmd" 2> /dev/null | grep maldetect | grep inotifywait)" ]; then
4343
$inspath/maldet -k >> /dev/null 2>&1
4444
monmode=1
4545
fi

0 commit comments

Comments
 (0)