Date: Mon, 15 Apr 2002 00:19:15 +0200 (CEST) From: Nicolas Rachinsky <list@rachinsky.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/37079: fetch complains about "size of remote file is not known" even if -q set Message-ID: <200204142219.g3EMJFC01667@pc5.abc>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204142219.g3EMJFC01667>