diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-21 22:04:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-21 22:04:08 +0000 |
commit | 0b27a10340c861ccb69e52a7ebf13c5c1cb57fe7 (patch) | |
tree | ff4d284a3651fc4a595c12c4806e13be385ea6d6 /fetchmail.c | |
parent | a402b06dfa66057d8955c4533ee6209d4f5493e4 (diff) | |
download | fetchmail-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.c | 2 |
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; |