summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0c52b7e..6d7b285 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)
OpenPOWER on IntegriCloud