summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* Warn if the size of the remote file isn't known.des2000-12-221-2/+11
| | | | | | | If the -R option was specified, don't truncate the local file even if its mtime is incorrect. PR: bin/23719
* If the URL did not specify a scheme, try to guess it from the host name.des2000-12-131-0/+10
|
* If the transfer timed out, but we don't know how large the file is supposeddes2000-11-301-1/+10
| | | | to be, assume it was truncated.
* Format string auditingkris2000-11-271-2/+2
|
* mdoc(7) police: do not split author names in the AUTHORS section.ru2000-11-221-0/+1
|
* Spell the des's name correctly.ru2000-11-141-1/+1
|
* Understand the difference between an empty file and a non-existent file.des2000-10-191-9/+13
| | | | This has been sitting in my tree for ages...
* Don't try to set the mtime of the output file if it's not a regular file.des2000-09-021-1/+2
| | | | Pointed out by: cwt
* Don't unlink the target file if it's not a regular file.des2000-08-311-1/+2
|
* Restore the old semantics of deleting the output file when interrupted.des2000-07-261-2/+4
| | | | Some people liked this and some didn't, so POLA won.
* Don't print summary in quiet mode.des2000-07-211-0/+3
|
* Don't display a running count in quiet mode.des2000-07-211-2/+7
| | | | | Don't add the offset to the size; it's libfetch's job to report the correct size of the requested file.
* Fix two bugs related to resumed transfers:des2000-07-191-20/+26
| | | | | | | | | | - if the dates didn't match, fetch would append the received file to the existing file instead of replacing it. - if the local file was complete and up-to-date, fetch would miscalculate the expected size and report a failure instead of a success, because it had no way of knowing that the server was actually resending the entire file since the requested offset was invalid.
* Braino: don't use passive mode unless the user requests it.des2000-07-191-1/+1
| | | | | PR: bin/20025 Submitted by: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
* * Remove description of obsolete -t option.ben2000-07-181-5/+2
| | | | | | * Insert newline before "and" in ".Fl c and". Approved by: des
* The description of the semantics of -v and -q has long since been OBE.des2000-07-171-10/+1
|
* While I'm at it, break a line that was too long, remove a pointless diagnosticdes2000-07-171-3/+3
| | | | and adjust the verbosity level of another.
* Document the fact that -r and -m are mutually exclusive.des2000-07-171-0/+10
|
* Rearrange / rewrite large portions of fetch() to take advantage of newdes2000-07-171-35/+84
| | | | | | | | | | | | | | | | | | | | | | libfetch features (fetchRestartCalls, fetchXGet()). Since it doesn't make much sense to have m_flag and r_flag set at the same time, and it can actually cause trouble in some cases, die if they're both set. Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can kill ourselves with a second SIGINT (thus notifying our parent of our tragic fate) instead of just exiting. These changes fix several problems that would show up when fetching ports, as well as speeding up HTTP transfers quite a bit (at least for relatively small files). Most of these changes were prompted by an interaction problem with an HTTP server called SWS-1.0, which exhibited two bugs, the first of which prevented fetch from working around the second (the first was not sending content-type in reply to HEAD requests, the second was sending garbage after the end of the requested file).
* Better signal handling.des2000-07-161-11/+18
| | | | Submitted by: green
* Fix a bug in the stats display that showed up when resuming aborted transfers.des2000-07-131-2/+2
| | | | Submitted by: green
* Rework the stats code for the nth time. Much cleaner now.des2000-07-121-98/+62
| | | | | | | | | | Always display the completion percentage if stderr is a tty. Drop the char-by-char transfer mode, it was based on an incorrect assumption regarding the semantics of fread(). Finally (I hope) straighten out the business of setting the mtime, as well as when to remove the output file and when not to. Thanks are owed to the many who have provided nearly instantaneous and highly constructive feedback and suggestions about these matters.
* Now that the HTTP code supports timeouts, we don't need to use alarm()des2000-07-121-16/+29
| | | | | | | around the call to fetchStat(). Catch SIGINT, and rework the signal handling so it doesn't skimp on the cleanup after a timeout or interrupt. Also, don't just bail out after a timeout; there may be more files to fetch.
* Rework the stats code to avoid code duplication.des2000-07-121-13/+16
| | | | | | Fix a bug where the stats code would print the expected size instead of the number of bytes received. Fix the reading code so it'll support partial reads.
* Don't segfault if given an invalid URL (doh!)des2000-07-091-1/+2
| | | | Submitted by: green
* Clarify the meaning of -m and -n (thanks to bde).des2000-07-081-6/+3
|
* Straighten out the behvaiour of -m and -n (thanks to bde).des2000-07-081-6/+12
| | | | Check that stderr, not stdout, is a tty (thanks to green).
* Add MIT copyrightdes2000-07-051-0/+2
|
* Note that the -h, -c and -f options are deprecated, and remove note thatdes2000-06-291-12/+17
| | | | | incorrectly stated that they were not implemented. Document the -d option.
* Implement the -c optiondes2000-06-291-3/+8
|
* Don't forget to delete the output file if the request fails.des2000-06-291-1/+3
| | | | Don't delete the output file if -r was specified.
* New libfetch-based fetch.des2000-06-2810-3845/+798
|
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Print a warning and exit with != 0 when at least one downloaded filecracauer2000-03-084-22/+44
| | | | | | | | is shorter than previously announced by the server. Tested by asami. Approved by: jkh
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-3/+6
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Add the -F option. This is for forcing restarts with -r by inhibitinggreen1999-10-234-7/+22
| | | | transmission of the If-Range HTTP header field.
* $Id$ -> $FreeBSD$peter1999-08-288-8/+8
|
* "transfered" -> "transferred"green1999-07-022-4/+4
| | | | Reviewed by: dict(1)
* This fixes the problem of cancelling an FTP transfer resulting ingreen1999-06-212-3/+6
| | | | | a bogus error ("parsing URI".) I also fixed an inconsistency in another fs_status.
* make md5 checksums actually work instead of simply calculating the lengthjmg1999-05-181-3/+7
| | | | | | | | | of an empty buffer... the output file wasn't readable... also warn that we can't checksum on stdout and print out the base64 encoded version of the md5 checksum... Site to actually return md5 digest: web.golux.com Verified that fetch was broken: Ken Coar <Ken.Coar@Golux.Com>
* Restore \n at end of usage message.wollman1999-03-081-2/+2
| | | | Complained-about-by: charnier
* Improve error message wording when attempting to link to a non-existentalex1999-03-021-2/+2
| | | | | | | file on the local host. PR: 10042 Submitted by: Chris Costello <phoenix@calldei.com>
* Deal with broken Web sites which return 302 responses rather than 404wollman1999-02-233-17/+38
| | | | | | and an error document when the requested resource does not exist. Grrr. Requested by: asami
* Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this.fenner1999-02-051-3/+1
|
* Warn about collapsing multiple slashes into 1 in ftp URL's.fenner1999-02-032-4/+34
| | | | | | | | | | | Look at the FTP_PASSIVE_MODE environment variable like the man page says. PR: bin/9464 Submitted by: John A. Shue <John.Shue@symmetron.com> Add references to RFC's 1790, 959, 850. PR: doc/6564
* Don't try to parse a colon in a URL as a portfenner1999-02-031-2/+2
| | | | | | | (e.g. http://www.host.name/foo:bar) PR: bin/5072 Submitted by: Takeshi WATANABE <watanabe@komadori.planet.kobe-u.ac.jp>
* Fix logic error in RFC 850 kluge.wollman1999-01-151-3/+4
|
* For RFC 850 dates received in HTTP responses, implement the century pivotwollman1999-01-152-4/+48
| | | | described in RFC 2068. Include a reference to same in the manual page.
* Add -s option, just report size of file that would be fetched.cracauer1998-12-085-8/+67
| | | | Reviewed by: -current list
OpenPOWER on IntegriCloud