summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-07-17 21:23:43 +0000
committerdes <des@FreeBSD.org>2001-07-17 21:23:43 +0000
commit45c6fea352aa4152125c624d3f02d7be748d3827 (patch)
tree1e680912f64e446df41f5c6f90f4bcebf517f590 /usr.bin/fetch
parent1d3699a988b042671342582d668e88801989f430 (diff)
downloadFreeBSD-src-45c6fea352aa4152125c624d3f02d7be748d3827.zip
FreeBSD-src-45c6fea352aa4152125c624d3f02d7be748d3827.tar.gz
If we're writing to stdout, we don't care about the size.
Submitted by: wollman
Diffstat (limited to 'usr.bin/fetch')
-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 e9f6fb9..8fdd609 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -351,7 +351,7 @@ fetch(char *URL, const char *path)
goto success;
}
- if (us.size == -1)
+ if (us.size == -1 && !o_stdout)
warnx("%s: size of remote file is not known", path);
if (v_level > 1) {
if (sb.st_size != -1)
OpenPOWER on IntegriCloud