diff options
author | jmz <jmz@FreeBSD.org> | 1996-06-24 01:03:05 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1996-06-24 01:03:05 +0000 |
commit | 85adcb8a3f2de787e035caa673263d231a64574c (patch) | |
tree | 73ae83532aaafb2085f4cf4d6e90ee9acc3cea79 /usr.bin | |
parent | 46fc34c49c3db6959c0e05bce725a4db4da729a6 (diff) | |
download | FreeBSD-src-85adcb8a3f2de787e035caa673263d231a64574c.zip FreeBSD-src-85adcb8a3f2de787e035caa673263d231a64574c.tar.gz |
Do not exit if ftpGetSize() returns a value < 0. You may well try to
fetch a whole <directory>.tar.gz on a server running wu-ftp.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fetch/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 <stdlib.h> #include <stdio.h> @@ -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); |