Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions files/internals/functions
Original file line number Diff line number Diff line change
@@ -893,16 +893,20 @@ quar_hitlist() {
}

clamselector() {
scan_max_filesize=`cat $sig_md5_file | cut -d':' -f2 | sort -n | tail -n1`
if [ "$scan_max_filesize" -gt "1" 2> /dev/null ]; then
scan_max_filesize=$[scan_max_filesize+1]
clamscan_max_filesize="${scan_max_filesize}"
scan_max_filesize="${scan_max_filesize}c"
sig_max_filesize=`cat $sig_md5_file | cut -d':' -f2 | sort -n | tail -n1`
if [ "$sig_max_filesize" -gt "1" 2> /dev/null ]; then
if [ -z "$scan_max_filesize" ]; then
scan_max_filesize="${scan_max_filesize}c"
fi
clamscan_max_filesize=$[sig_max_filesize+1]
else
scan_max_filesize="2048k"
if [ -z "$scan_max_filesize" ]; then
scan_max_filesize="2048k"
fi
clamscan_max_filesize="2592000"
fi


if [ "$scan_clamscan" == "1" ]; then
trim_log $clamscan_log 10000 1
for dpath in $clamav_paths; do