From owner-freebsd-bugs Sun Apr 14 15:20:20 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6111137B41B for ; Sun, 14 Apr 2002 15:20:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3EMK1j16369; Sun, 14 Apr 2002 15:20:01 -0700 (PDT) (envelope-from gnats) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by hub.freebsd.org (Postfix) with ESMTP id D385D37B400 for ; Sun, 14 Apr 2002 15:19:29 -0700 (PDT) Received: from fwd01.sul.t-online.de by mailout08.sul.t-online.com with smtp id 16wsLI-00060m-03; Mon, 15 Apr 2002 00:19:28 +0200 Received: from pc5.abc (520067998749-0001@[217.233.121.54]) by fmrl01.sul.t-online.com with esmtp id 16wsL7-1IpHHsC; Mon, 15 Apr 2002 00:19:17 +0200 Received: (from nicolas@localhost) by pc5.abc (8.11.6/8.11.6) id g3EMJFC01667; Mon, 15 Apr 2002 00:19:15 +0200 (CEST) (envelope-from nicolas) Message-Id: <200204142219.g3EMJFC01667@pc5.abc> Date: Mon, 15 Apr 2002 00:19:15 +0200 (CEST) From: Nicolas Rachinsky Reply-To: Nicolas Rachinsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/37079: fetch complains about "size of remote file is not known" even if -q set Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37079 >Category: bin >Synopsis: fetch complains about "size of remote file is not known" even if -q set >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 14 15:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Nicolas Rachinsky >Release: FreeBSD 4.5-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD pc5.abc 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #1: Fri Mar 8 22:22:24 CET 2002 nicolas@pc5.abc:/usr/obj/usr/src/sys/NR i386 >Description: when fetching a file, which size can't be determined by fetch before actually fetching the file, fetch complains "size of remote file is not known". The problem is, fetch complains even if it's told to work in "quiet mode" (-q). >How-To-Repeat: fetch -q -o /dev/null url_whose_size_can't_be_determined_before_download >Fix: --- /usr/src/usr.bin/fetch/fetch.c Tue Dec 18 10:48:09 2001 +++ fetch.c Mon Apr 15 00:12:26 2002 @@ -386,7 +386,7 @@ goto success; } - if (us.size == -1 && !o_stdout) + if (us.size == -1 && !o_stdout && v_level > 0) warnx("%s: size of remote file is not known", path); if (v_level > 1) { if (sb.st_size != -1) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message