From 0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 21 Nov 1996 22:04:08 +0000 Subject: Correct MDA return status check. svn path=/trunk/; revision=569 --- fetchmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetchmail.c b/fetchmail.c index 3dea6252..c5883ffc 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -856,7 +856,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; -- cgit v1.2.3