linux-malware-detect icon indicating copy to clipboard operation
linux-malware-detect copied to clipboard

fix setting scan_max_filesize

Open ChrisOrlando opened this issue 1 year ago • 0 comments

the variable name $scan_max_filesize is being used to store the configuration value for the largest file size that should be scanned which is passed to find and also the largest file size in the signatures.

add a new variable called $sig_max_filesize for that purpose and add a conditional check so that we don't override $scan_max_filesize if the user has set it in the configuration

this definitely needs some scrutiny

ChrisOrlando avatar Mar 09 '23 19:03 ChrisOrlando