aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-10-27 17:33:08 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-10-27 17:33:08 +0000
commiteb87c5a73a37cdada3d5693eea1daca3882e2cb8 (patch)
treea7f5754a3944c91a5a59ac9ee054a7969927875e /usr.bin
parent1bc796d774d363ff46527720b335cee6a28c686c (diff)
downloadsrc-eb87c5a73a37cdada3d5693eea1daca3882e2cb8.tar.gz
src-eb87c5a73a37cdada3d5693eea1daca3882e2cb8.zip
Don't complain about not knowing the remote file size when working in
quiet mode. PR: bin/37079 Submitted by: Nicolas Rachinsky <list@rachinsky.de>
Notes
Notes: svn path=/head/; revision=106051
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 0c52b7eee4f2..6d7b28545c6e 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -419,7 +419,7 @@ fetch(char *URL, const char *path)
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)