aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-21 22:04:08 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-21 22:04:08 +0000
commit0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7 (patch)
treeff4d284a3651fc4a595c12c4806e13be385ea6d6 /fetchmail.c
parenta402b06dfa66057d8955c4533ee6209d4f5493e4 (diff)
downloadfetchmail-0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7.tar.gz
fetchmail-0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7.tar.bz2
fetchmail-0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7.zip
Correct MDA return status check.
svn path=/trunk/; revision=569
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c2
1 files changed, 1 insertions, 1 deletions
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;