[Pkg-wmaker-commits] [wmbiff] 21/32: fix error return status (ben's 'lil' patch)

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_3_8
in repository wmbiff.

commit dca061eb8097b79b86eba1d980f1d83657aac250
Author: bluehal <bluehal>
Date:   Thu Mar 7 22:20:41 2002 +0000

    fix error return status (ben's 'lil' patch)
---
 wmbiff/ShellClient.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/wmbiff/ShellClient.c b/wmbiff/ShellClient.c
index 60c86a9..6b2774a 100644
--- a/wmbiff/ShellClient.c
+++ b/wmbiff/ShellClient.c
@@ -25,8 +25,7 @@ int shellCmdCheck(Pop3 pc)
 	if ((F = popen(pc->path, "r")) == NULL) {
 		DM(pc, DEBUG_ERROR, "popen: error while reading '%s': %s\n",
 		   pc->path, strerror(errno));
-		pc->TotalMsgs = pc->UnreadMsgs = -1;
-		return 1;
+		return -1;
 	}
 
 	/* doesn't really need to be handled separately, but it
@@ -35,9 +34,8 @@ int shellCmdCheck(Pop3 pc)
 		DM(pc, DEBUG_ERROR,
 		   "'%s' returned something other than an integer message count.\n",
 		   pc->path);
-		pc->TotalMsgs = pc->UnreadMsgs = -1;
 		pclose(F);
-		return 1;
+		return -1;
 	}
 
 	pc->TotalMsgs = pc->UnreadMsgs + count_status;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list