From 571c5da9d8529e029fb478ee1f47057e0ebb6762 Mon Sep 17 00:00:00 2001 From: Glenn Burkhardt Date: Mon, 22 Sep 2003 00:43:09 +0000 Subject: [PATCH] =?utf8?q?status=20of=20action=20wasn't=20saved=20for=20use=20?= =?utf8?q?by=20'N'=20result,=20so=20when=20'N'=20was=20used=20slocal=20could?= =?utf8?q?=20perform=20the=20action=20even=20if=20the=20previous=20action=20?= =?utf8?q?failed.=20=20Debian=20bug=20report=20#149745,=20filed=20by=20Danie?= =?utf8?q?l=20M=FCller.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- uip/slocal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uip/slocal.c b/uip/slocal.c index b176008..6bf3e15 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -460,7 +460,7 @@ localmail (int fd, char *mdlvr) static int usr_delivery (int fd, char *delivery, int su) { - int i, accept, status, won, vecp, next; + int i, accept, status=1, won, vecp, next; char *field, *pattern, *action, *result, *string; char buffer[BUFSIZ], tmpbuf[BUFSIZ]; char *cp, *vec[NVEC]; @@ -664,6 +664,8 @@ usr_delivery (int fd, char *delivery, int su) break; } + if (status) next = 0; /* action failed, mark for 'N' result */ + if (accept && status == 0) won++; } -- 1.7.10.4