[Mimedefang] example virus filters, and Sendmail 8.12.2 patch

Eric Fehr eric at regolith.net
Tue Mar 5 15:22:29 EST 2002


David F. Skoll wrote:

> 
> Sorry; I will add an example call to a virus-scanner in the next
> release.  Here are examples if you have NAI.  Read mimedefang-filter(5)
> for other virus-scanners.
> 


Thanks, that should get me pointed in the right direction.

> 
>>Also, the patch from the main page for Sendmail 8.12.2 will break
>>milter.
>>
> 
> Which patch is that?
> 

The patch in question is:

RCS file: /cvs/libmilter/comm.c,v
retrieving revision 8.48
diff -u -r8.48 comm.c
--- comm.c2001/11/07 17:43:048.48
+++ comm.c2002/03/02 02:34:41
@@ -249,8 +250,8 @@
  return MI_FAILURE;

  /* use writev() instead to send the whole stuff at once? */
-while ((l = MI_SOCK_WRITE(sd, (void *) (data + i),
-  sl - i)) < (ssize_t) sl)
+while (sl > 0 &&
+       (l = MI_SOCK_WRITE(sd, (void *) (data + i), sl)) < (ssize_t) sl)
  {
  if (l < 0)
  return MI_FAILURE;
@@ -273,8 +274,8 @@
  } while (ret < 0 && errno == EINTR);
  if (ret < 0)
  return MI_FAILURE;
-while ((l = MI_SOCK_WRITE(sd, (void *) (buf + i),
-  sl - i)) < (ssize_t) sl)
+while (sl > 0 &&
+       (l = MI_SOCK_WRITE(sd, (void *) (data + i), sl)) < (ssize_t) sl)
  {
  if (l < 0)
  return MI_FAILURE;


Is this patch an attempt to fix the same behavior as:

http://www.sendmail.org/~ca/email/patches/milter.c.8.188.p

?  When the above comm.c patch is applied, it causes the reported 
version number conflict on startup (2 vs 13).

Thanks,
Eric




More information about the MIMEDefang mailing list