diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-06-29 10:44:10 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-06-29 10:44:10 +0000 |
| commit | 893980ad29edbf8e620cb9b7e9237cd519ce116b (patch) | |
| tree | 7b2bde234c00949f1f7b369ba9147f95b869f917 /lib/libfetch/ftp.c | |
| parent | 047843dd612daeb0cc30b46937a090e27b407278 (diff) | |
Notes
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 c9aec194fe75..e6c520f6d010 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"); |
