| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Pointed out by: cwt
|
| |
|
|
|
|
| |
Some people liked this and some didn't, so POLA won.
|
| |
|
|
|
|
|
| |
Don't add the offset to the size; it's libfetch's job to report the correct
size of the requested file.
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
| |
PR: bin/20025
Submitted by: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
|
|
|
|
|
|
| |
* Insert newline before "and" in ".Fl c and".
Approved by: des
|
| |
|
|
|
|
| |
and adjust the verbosity level of another.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Submitted by: green
|
|
|
|
| |
Submitted by: green
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Submitted by: green
|
| |
|
|
|
|
| |
Check that stderr, not stdout, is a tty (thanks to green).
|
| |
|
|
|
|
|
| |
incorrectly stated that they were not implemented.
Document the -d option.
|
| |
|
|
|
|
| |
Don't delete the output file if -r was specified.
|
| |
|
|
|
|
|
|
| |
It was not discussed and should probably not happen.
Requested by: msmith and others
|
|
|
|
|
|
|
|
| |
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
|
|
|
|
|
|
|
|
| |
is shorter than previously announced by the server.
Tested by asami.
Approved by: jkh
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
|
|
|
| |
transmission of the If-Range HTTP header field.
|
| |
|
|
|
|
| |
Reviewed by: dict(1)
|
|
|
|
|
| |
a bogus error ("parsing URI".) I also fixed an inconsistency in
another fs_status.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Complained-about-by: charnier
|
|
|
|
|
|
|
| |
file on the local host.
PR: 10042
Submitted by: Chris Costello <phoenix@calldei.com>
|
|
|
|
|
|
| |
and an error document when the requested resource does not exist. Grrr.
Requested by: asami
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
(e.g. http://www.host.name/foo:bar)
PR: bin/5072
Submitted by: Takeshi WATANABE <watanabe@komadori.planet.kobe-u.ac.jp>
|
| |
|
|
|
|
| |
described in RFC 2068. Include a reference to same in the manual page.
|
|
|
|
| |
Reviewed by: -current list
|
|
|
|
|
|
| |
Fix usage string. Fix getopt() string. Fix ordering of compatibility options.
fetch.1:
Fix synopsis. Fix ordering of T and t options. Fix minor grammar nit.
|
|
|
|
|
| |
the server. There exists a broken server which sends a few extra
garbage bytes in response to HTTP/1.1 requests.
|
|
|
|
|
| |
don't use it. That's why I'm bringing it in during our "code slush"
Submitted by: Stefan Esser <se@mi.uni-koeln.de>
|
|
|
|
| |
PR: bin/7203
|
|
|
|
|
|
| |
- failed to use authorization parameters passed in the environment, if
/dev/tty could not be opened (i.e. if running from cron)
- mixed use of /dev/tty and stdin for prompt and reading of the result
|
|
|
|
| |
argument, so use `.Tn FreeBSD' instead.
|
|
|
|
|
| |
to the case in question. (Said case being quite clearly defined by
the basic TCP specification, RFC 792.)
|