From MAILER-DAEMON Mon Mar 29 10:49:07 2004 Received: from list by monty-python.gnu.org with archive (Exim 4.30) id 1B7yzj-00055n-Ef for mharc-bug-gnunet@gnu.org; Mon, 29 Mar 2004 10:48:11 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6CkK-0003no-O9 for bug-gnunet@gnu.org; Wed, 24 Mar 2004 13:04:56 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6ChT-0002zV-Q3 for bug-gnunet@gnu.org; Wed, 24 Mar 2004 13:02:31 -0500 Received: from [206.230.5.18] (helo=ns.purdue.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6Bvp-0001fU-UH for bug-gnunet@gnu.org; Wed, 24 Mar 2004 12:12:45 -0500 Received: from portproxy by ns.purdue.org with local (Exim 3.36 #1 (Debian)) id 1B6Bvg-0000kp-00 for ; Wed, 24 Mar 2004 12:12:36 -0500 Received: from kyler by lairds.com with local (masqmail 0.2.20) id 1B6Bvf-69i-00; Wed, 24 Mar 2004 12:12:35 -0500 Date: Wed, 24 Mar 2004 12:12:35 -0500 From: Kyler Laird To: bug-gnunet@gnu.org Message-ID: <20040324171235.GG1922@snout> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i X-Mailman-Approved-At: Mon, 29 Mar 2004 10:48:09 -0500 Cc: kennell@ecn.purdue.edu Subject: [bug-GNUnet] gnunet-download return code always 0 X-BeenThere: bug-gnunet@gnu.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: kyler-dated-1080406254.fe4343@lairds.com List-Id: Report bugs in GNUnet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 18:04:58 -0000 It seems that as long as gnunet-download get an output file and a URI it always returns a zero (OK) result code. I would expect it to return a non-zero code if the download did not complete satisfactorily. Instead, it appears that I have to parse the debug output and/or check the resulting file size to determine if an error occurred. --kyler From MAILER-DAEMON Mon Mar 29 12:21:05 2004 Received: from list by monty-python.gnu.org with archive (Exim 4.30) id 1B80NR-0002ve-JY for mharc-bug-gnunet@gnu.org; Mon, 29 Mar 2004 12:16:45 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B80N9-0002pE-2N for bug-gnunet@gnu.org; Mon, 29 Mar 2004 12:16:27 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B80GV-00011W-Et for bug-gnunet@gnu.org; Mon, 29 Mar 2004 12:10:07 -0500 Received: from [204.127.203.184] (helo=sccmmhc02.asp.att.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B7zfD-0007hR-DX for bug-gnunet@gnu.org; Mon, 29 Mar 2004 11:31:03 -0500 Received: from elma (12-222-155-71.client.insightbb.com[12.222.155.71]) by sccmmhc02.asp.att.net (sccmmhc02) with ESMTP id <20040329163101mm2003k93je>; Mon, 29 Mar 2004 16:31:01 +0000 From: Christian Grothoff Organization: Purdue University, Department of Computer Science To: bug-gnunet@gnu.org, kyler-dated-1080406254.fe4343@Lairds.com Subject: Re: [bug-GNUnet] gnunet-download return code always 0 Date: Mon, 29 Mar 2004 11:33:45 -0500 User-Agent: KMail/1.6.1 References: <20040324171235.GG1922@snout> In-Reply-To: <20040324171235.GG1922@snout> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403291133.45218.grothoff@cs.purdue.edu> Cc: kennell@ecn.purdue.edu X-BeenThere: bug-gnunet@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Report bugs in GNUnet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 17:16:43 -0000 On Wednesday 24 March 2004 12:12, Kyler Laird wrote: > It seems that as long as gnunet-download get an output file and a URI it > always returns a zero (OK) result code. I would expect it to return a > non-zero code if the download did not complete satisfactorily. Instead, > it appears that I have to parse the debug output and/or check the > resulting file size to determine if an error occurred. Right, that's a bug. Fixed in CVS. Christian