Fix procmail searching the body alone. From FreeBSD via Brad.

This commit is contained in:
sthen 2009-03-08 10:34:10 +00:00
parent c2d358ca15
commit 4f43e6a412
2 changed files with 17 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.33 2008/09/15 02:30:14 brad Exp $
# $OpenBSD: Makefile,v 1.34 2009/03/08 10:34:10 sthen Exp $
COMMENT= filtering local mail delivery agent
DISTNAME= procmail-3.22
CATEGORIES= mail
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
MASTER_SITES= ${HOMEPAGE} \
ftp://ftp.psg.com/pub/unix/procmail/ \

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_procmail_c,v 1.1 2009/03/08 10:34:10 sthen Exp $
Fix searching body alone.
--- src/procmail.c.orig Sat Jun 30 21:50:32 2007
+++ src/procmail.c Sat Jun 30 21:51:22 2007
@@ -652,7 +652,7 @@ commint:do skipspace(); /* skip whitespace */
nrcond= -1;
if(tolock) /* clear temporary buffer for lockfile name */
free(tolock);
- for(i=maxindex(flags);i;i--) /* clear the flags */
+ for(i=maxindex(flags);i>=0;i--) /* clear the flags */
flags[i]=0;
for(tolock=0,locknext=0;;)
{ chp=skpspace(chp);