]> Pileus Git - ~andy/fetchmail/commitdiff
Correct MDA return status check.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 21 Nov 1996 22:04:08 +0000 (22:04 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 21 Nov 1996 22:04:08 +0000 (22:04 -0000)
svn path=/trunk/; revision=569

fetchmail.c

index 3dea6252f778ae707d232def15e12c6b5d8c805c..c5883ffc150827484d21c74075aa482498b5498c 100644 (file)
@@ -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;