Hi, After I started using linux kernel 2.6, I found that virus emails were not being moved to the quarantine directory, and an 'Invalid argument' message was being logged.
I tracked this down to the call to sendfile in clamav-milter.c. It appears that on kernel 2.6, sendfile will not do a file to file copy. The attached patch detects the sendfile failure, and falls back to a read then write copy loop Simon
_______________________________________________ http://lurker.clamav.net/list/clamav-devel.html