diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-10 18:49:42 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-10 18:49:42 +0000 |
commit | e189308068abbb9de44dae32a984cdf77a749d97 (patch) | |
tree | 9359a0f6b88b613cda767f724373444c8ec5fda2 /usr.bin/fetch/ftp.c | |
parent | 7c4a46a3a0d231d6f26abeb0dec447ec8fa3a45c (diff) | |
download | FreeBSD-src-e189308068abbb9de44dae32a984cdf77a749d97.zip FreeBSD-src-e189308068abbb9de44dae32a984cdf77a749d97.tar.gz |
Fix PR#2700: report correct transmission speed, and restart transfers
from the restart point, not the end of the file (blush!).
Submitted by: John-Mark Gurney <jmg@nike.efn.org>
Diffstat (limited to 'usr.bin/fetch/ftp.c')
-rw-r--r-- | usr.bin/fetch/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/ftp.c b/usr.bin/fetch/ftp.c index 0960b81..1b8e0fe 100644 --- a/usr.bin/fetch/ftp.c +++ b/usr.bin/fetch/ftp.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftp.c,v 1.1 1997/01/30 21:43:40 wollman Exp $ + * $Id: ftp.c,v 1.2 1997/02/05 19:59:12 wollman Exp $ */ #include <sys/types.h> @@ -327,7 +327,7 @@ ftp_retrieve(struct fetch_state *fs) } if (fs->fs_restart) { if (stab.st_size != 0 && stab.st_size < size) - seekloc = wehave = size; + seekloc = wehave = stab.st_size; } } |