Hi !!
Maybe it will be better to change
if (strcmpic(clamd_options2,US"local") == 0) {
.....
}
else
{
for just
if (strcmpic(clamd_options2,US"local") != 0) {
> ------------------------------------------------------------------------
>
> --- src/malware.c.orig 2006-12-31 13:33:38.000000000 +0000
> +++ src/malware.c 2007-01-07 15:26:17.000000000 +0000
> @@ -1077,16 +1077,12 @@
>
> if (strcmpic(clamd_options2,US"local") == 0) {
>
> - /* Pass the string to ClamAV (7 = "SCAN \n" + \0) */
> -
> - (void)string_format(file_name,1024,"SCAN %s/scan/%s\n", spool_directory, message_id);
> + /* clam is running on the local machine
> + Simply needs to be passed the scan command
> + which is performed as the final send for
> + all connection modes
> + */
>
> - if (send(sock, file_name, Ustrlen(file_name), 0) < 0) {
> - (void)close(sock);
> - log_write(0, LOG_MAIN|LOG_PANIC,"malware acl condition: clamd: unable to write to socket (%s)",
> - strerror(errno));
> - return DEFER;
> - }
> } else {
>
> /* Pass the string to ClamAV (7 = "STREAM\n") */
>
--
Salu-2 y hasta pronto ...
I am Homer of Borg. Prepare to be assim... mmmm, donuts.
----------------------------------------------------------------
David Saez Padros http://www.ols.es
On-Line Services 2000 S.L. e-mail david@???
Pintor Vayreda 1 telf +34 902 50 29 75
08184 Palau-Solita i Plegamans movil +34 670 35 27 53
----------------------------------------------------------------