From nicolas@narr.dyn.dhs.org  Sun Apr 14 15:19:31 2002
Return-Path: <nicolas@narr.dyn.dhs.org>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <list@rachinsky.de>
Reply-To: Nicolas Rachinsky <list@rachinsky.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fetch complains about "size of remote file is not known" even if -q set
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 15:20:01 PDT 2002
>Closed-Date:    Wed Nov 27 07:52:38 PST 2002
>Last-Modified:  Wed Nov 27 07:52:38 PST 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sun Apr 14 23:14:01 PDT 2002 
Responsible-Changed-Why:  
To the fetch(1) maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37079 
State-Changed-From-To: open->feedback 
State-Changed-By: des 
State-Changed-When: Tue Oct 29 01:29:02 PST 2002 
State-Changed-Why:  
Fixed in -CURRENT, awaiting MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37079 
State-Changed-From-To: feedback->closed 
State-Changed-By: des 
State-Changed-When: Wed Nov 27 07:52:36 PST 2002 
State-Changed-Why:  
Fixed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37079 
>Unformatted:
