procmail
[Top] [All Lists]

Re: procmail 3.22 H-is-always-set bug

2003-02-18 16:29:24
John Relph wrote:
Does anybody have a patch for the "H-is-always-set" bug in procmail
3.22?  It is very annoying.

If you only want to fix the "H-is-always-set" bug, this should probably work:

diff -ru procmail-3.22.orig/src/procmail.c procmail-3.22/src/procmail.c
--- procmail-3.22.orig/src/procmail.c   2001-09-11 06:59:14.000000000 +0200
+++ procmail-3.22/src/procmail.c        2003-02-19 00:09:49.000000000 +0100
@@ -652,8 +652,7 @@
              nrcond= -1;
           if(tolock)            /* clear temporary buffer for lockfile name */
              free(tolock);
-          for(i=maxindex(flags);i;i--)                   /* clear the flags */
-             flags[i]=0;
+          bbzero(flags,sizeof(flags));           /* clear the flags */
           for(tolock=0,locknext=0;;)
            { chp=skpspace(chp);
              switch(i= *chp++)

(At least this is how it's fixed in the Debian package, which is in
turn based on the snapshot, and contain some other patches).

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>