summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* Include value of command line argument that causes an error message orse2001-07-281-6/+9
| | | | | | | warning in said message, since fetch may be run from a makefile or script which does not print the command line. Approved by: des
* If we're writing to stdout, we don't care about the size.des2001-07-171-1/+1
| | | | Submitted by: wollman
* WARNS cleanup + remove an unused macro and an unused function argument.des2001-07-172-650/+654
|
* Remove whitespace at EOL.dd2001-07-151-4/+4
|
* Fix an embarassing if-test-reversal bug that broke scheme guessing.des2001-07-081-2/+2
|
* Don't try to print a completion percentage for zero-size files.des2001-06-011-1/+1
| | | | | PR: 27780 Submitted by: Craig Leres <leres@ee.lbl.gov>
* Damn. Fix typo in previous commit.des2001-05-271-1/+1
|
* When running on a tty, install an authentication callback.des2001-05-261-8/+52
|
* Bring the usage message in synch with reality.des2001-03-281-3/+2
| | | | PR: bin/26160
* Now that libfetch uses the high port range by default, add a -U option todes2001-03-242-13/+17
| | | | make it use the low (default) port range instead.
* If SIGINFO is received during the transfer, print a status line similardes2001-03-071-5/+29
| | | | | | | | to the summary shown at the end of the transfer. Some days, I really hate Unix... Suggested by: cracauer
* Fix a formatting bug (MFC candidate)des2001-03-071-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* 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.
OpenPOWER on IntegriCloud