possible bug in 4.84.3-1 located in clamav-wrapper

Alexandru Ionica alexandru.ionica at gmail.com
Wed Nov 9 14:19:09 GMT 2011


MailScanner 4.84.3-1 fresh install running on Centos-6 x86_64 .
Running MailScanner --debug-sa i noticed the following:
12:54:12 LibClamAV Error: cli_scanhtml: Can't create temporary directory

/var/spool/MailScanner/incoming/SpamAssassin-Temp/tmp.vWQ4hixN67 is a file
and not a directory so this is why it was caused.

I looked at /usr/lib/MailScanner/clamav-wrapper and changed
TempDir=$(mktemp) || { echo "$0: Cannot make name for temporary dir" >&2;
exit 1; }
TempDir=$(mktemp -d --tmpdir=/var/spool/MailScanner/clamav) || { echo "$0:
Cannot make name for temporary dir" >&2; exit 1; }

I presume the --tmpdir wouldn't have been needed but i wanted to also move
it do a different folder.
Anyway the cause seems to be the lack of the -d flag to mktemp so mktemp
creates a file instead of a folder.

After doing the above change i don't see any more errors or warnings from

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20111109/027ae555/attachment.html

More information about the MailScanner mailing list