clam wrapper

Mark Sapiro mark at msapiro.net
Sat Jan 30 01:15:17 UTC 2016


On 01/29/2016 04:55 PM, Jerry Benton wrote:
> Similar to this:
> 
> mktemp --tmpdir=/var/spool/MailScanner/incoming/clamav-tmp


Just be sure that if you do that ahead of this:


>>> if [ "x$1" = "x-IsItInstalled" ]; then
>>> rm -f ${TempDir}
>>> [ -x $ClamScan ] && exit 0
>>> exit 1
>>> fi


That the removal of the mktemp file is done. Otherwise, people who don't
use clamav because they use clamd or something else, wind up with lots
of empty temp files.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list