diff options
author | des <des@FreeBSD.org> | 2000-06-29 10:44:10 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-06-29 10:44:10 +0000 |
commit | 2f7d5cb4f5f839f699dd02faa9de390e4660abfe (patch) | |
tree | 2e8106725a21ee5c5472e3cfd10429b8e6f12660 /lib/libfetch/ftp.c | |
parent | cd4c3a8be387ce3b42e322baaff5d1875768e6dd (diff) | |
download | FreeBSD-src-2f7d5cb4f5f839f699dd02faa9de390e4660abfe.zip FreeBSD-src-2f7d5cb4f5f839f699dd02faa9de390e4660abfe.tar.gz |
Make restart work in active mode, too.
PR: bin/18688
Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index c9aec19..e6c520f 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"); |