aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--fetchmail.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 330f4b5f..5a464d3b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Release Notes:
+pl 1.9.4 ():
+* Correct status interpretation in closemailpipe() (thanks to Neil Harkins).
+
pl 1.9.3 (Sun Oct 27 22:35:33 EST 1996):
* Handle nested parens in RFC822 comments.
* More gcc -Wall cleanup.
diff --git a/fetchmail.c b/fetchmail.c
index 484a45e5..d6b8349d 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -735,7 +735,7 @@ int fd;
* Try to pass up an error if the MDA returned nonzero status,
* on the assumption that this means it was reporting failure.
*/
- if (WIFEXITED(status) == 0 || WEXITSTATUS(status) != 0)
+ if (WIFEXITED(status) == 0 && WEXITSTATUS(status) != 0)
{
perror("fetchmail: MDA exited abnormally or returned nonzero status");
err = -1;