Bug#151627: patch to fix formail -n

2006-03-07 Thread Gaudenz Steinlin
tags 151627 +patch
Thanks

Hi

I had the same problem with formail -n as reported in this bug. The fix
suggested by Elladan worked for me. For your convenience I attach it as
a patch.

Gaudenz

-- 
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~
--- formisc.c.orig  2006-03-07 09:37:17.374517000 +0100
+++ formisc.c   2006-03-07 09:37:22.134517000 +0100
@@ -183,10 +183,10 @@
 retval=excode;
}  /* reap some children */
while(childlimitchildren=childlimit||(child=fork())==-1children)
-  for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;)
+  for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;--children)
{ if(excode!=EXIT_SUCCESS)
 retval=excode;
- if(--children=maxchild)
+ if(children=maxchild)
 break;
}
   }


pgpZnZUAEKLvt.pgp
Description: PGP signature


Bug#151627: patch to fix formail -n (fwd)

2006-03-07 Thread Santiago Vila
Hello.

Received this patch to fix Debian Bug#151627 in procmail
(i.e, formail -n not working). Will there be a procmail 3.23 release
some day officially fixing this and other bugs?

--- formisc.c.orig  2006-03-07 09:37:17.374517000 +0100
+++ formisc.c   2006-03-07 09:37:22.134517000 +0100
@@ -183,10 +183,10 @@
 retval=excode;
}  /* reap some children */
while(childlimitchildren=childlimit||(child=fork())==-1children)
-  for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;)
+  for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;--children)
{ if(excode!=EXIT_SUCCESS)
 retval=excode;
- if(--children=maxchild)
+ if(children=maxchild)
 break;
}
   }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]