From 85adcb8a3f2de787e035caa673263d231a64574c Mon Sep 17 00:00:00 2001 From: jmz Date: Mon, 24 Jun 1996 01:03:05 +0000 Subject: Do not exit if ftpGetSize() returns a value < 0. You may well try to fetch a whole .tar.gz on a server running wu-ftp. --- usr.bin/fetch/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index ba0d9a0..dca950a 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id: main.c,v 1.3 1996/06/22 21:42:14 jkh Exp $ */ +/* $Id: main.c,v 1.4 1996/06/22 23:24:13 jkh Exp $ */ #include #include @@ -239,8 +239,6 @@ ftpget () ftperr (ftp, "Couldn't cd to %s: ", change_to_dir); } size = ftpGetSize (ftp, file_to_get); - if (size < 0) - ftperr (ftp, "%s: ", file_to_get); modtime = ftpGetModtime (ftp, file_to_get); if (modtime < -1) { warnx ("Couldn't get file time for %s - using current time", file_to_get); -- cgit v1.1