summaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-03-08 08:57:19 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-03-08 08:57:19 +0000
commit07a6122da8554479ffd33798e9af4cb17d771d50 (patch)
tree310ccda3a7ffe72d694b218a759046bcd40dc7ca /usr.bin/fetch
parentc2556ef3bb5488c6e350bc6335453d66c96ea39b (diff)
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/http.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 8a7b3be40147..070099a02412 100644
--- a/usr.bin/fetch/http.c
+++ b/usr.bin/fetch/http.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: http.c,v 1.4.2.5 1997/11/08 22:24:45 obrien Exp $
+ * $Id: http.c,v 1.4.2.6 1997/11/18 03:28:50 jdp Exp $
*/
#include <sys/types.h>
@@ -671,6 +671,8 @@ got100reply:
return EX_OSERR;
} else if(ferror(remote)) {
warn("%s", https->http_hostname);
+ if (errno == ECONNRESET)
+ warnx("(maybe try -b or -t)");
fclose(local);
fclose(remote);
rm(fs);
@@ -967,6 +969,8 @@ spewerror:
if (ferror(remote)) {
warn("reading remote file from %s", https->http_hostname);
+ if (errno == ECONNRESET)
+ warnx("(maybe try -b or -t)");
status = EX_OSERR;
} else if(ferror(local)) {
warn("`%s': fwrite", fs->fs_outputfile);