From 893980ad29edbf8e620cb9b7e9237cd519ce116b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 29 Jun 2000 10:44:10 +0000 Subject: [PATCH] Make restart work in active mode, too. PR: bin/18688 Submitted by: Rudolf Cejka --- lib/libfetch/ftp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index c9aec194fe7..e6c520f6d01 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -455,6 +455,11 @@ _ftp_transfer(int cd, char *oper, char *file, if (e != FTP_OK) goto ouch; + /* seek to required offset */ + if (offset) + if (_ftp_cmd(cd, "REST %lu", (u_long)offset) != FTP_FILE_OK) + goto sysouch; + /* make the server initiate the transfer */ if (verbose) _fetch_info("initiating transfer");