trhodes
d46752fb9c
Revert 1.52. This should have been added to fetch.3.
...
Discussed with: des, ru
2003-06-10 20:34:50 +00:00
des
e5d2d778eb
Retire the useless NOSECURE knob.
...
Approved by: re (scottl)
2003-05-19 15:52:01 +00:00
trhodes
80d62fd7dc
Add an EXAMPLES section.
...
Xref sh(1) as we use environment variables.
PR: 43899
Reviewed by: des
2003-05-17 15:46:46 +00:00
des
da6d6f33ac
Mark fetch(1) as c99- and WARNS6-clean.
2003-05-01 14:40:55 +00:00
des
2bcbb73b91
Use floating point arithmetic to compute the ETA to avoid integer overflow
...
during slow transfers of large files.
2003-03-11 21:33:43 +00:00
des
7f82e9791f
Clean up the ETA logic a bit and make sure it works for restarted transfers.
2003-03-11 08:21:51 +00:00
des
e75fbc13e3
Clarify that -r implies -R.
2003-03-11 08:21:16 +00:00
ru
0dea541567
mdoc(7) police: Scheduled sweep.
2003-02-24 22:53:26 +00:00
des
d0a96d2181
Slight cleanup of the ETA / BPS code. Avoid a division by zero.
2003-01-23 13:06:13 +00:00
des
0c1d7b9b17
Document netrc support.
2003-01-22 18:35:20 +00:00
des
4a3e9f26cb
Add -N option to specify a netrc file.
...
Fix handling of -v option.
Don't treat negative offsets as valid positive ones.
Clean up the ETA and transfer rate code. Show transfer rate along with
ETA if the verbose level is higher than 1.
2003-01-22 18:33:39 +00:00
des
3eb14891e1
Use the URL instead of the output file name when reporting errors relating
...
to the remote document.
PR: 33856
MFC after: 1 week
Approved by: re
2002-11-27 20:52:07 +00:00
des
57b4b0e512
Don't set atime / mtime if we don't have an output file, which can happen
...
in certain failure scenarii (mostly DNS trouble).
2002-11-13 16:04:20 +00:00
fenner
73fa7c5c52
Don't divide by zero to calculate the ETA, even if we haven't gotten
...
any data in 30 seconds.
2002-11-12 07:09:43 +00:00
fenner
abf784c214
Don't exit with success after timeout during authentication.
2002-11-07 22:16:45 +00:00
des
deb00535da
Clarify my feelings towards fetch / libfetch.
2002-10-30 04:53:58 +00:00
des
911ff37bf7
Don't complain about not knowing the remote file size when working in
...
quiet mode.
PR: bin/37079
Submitted by: Nicolas Rachinsky <list@rachinsky.de>
2002-10-27 17:33:08 +00:00
des
877e52987a
Whitespace and indentation cleanup.
2002-10-27 15:32:51 +00:00
des
f8dcf07de6
Forgot to disable alarms after fetchXGet() in previous commit.
2002-10-27 15:32:06 +00:00
des
c1a4236482
Add an ETA timer that kicks in after 30 seconds.
...
Re-add alarm(2) calls around the calls to fetchStat(3) and fetchXGet(3),
since these calls can still time out on DNS lookups or TCP connect(2).
Remove the alarm(2) calls in the main loop, since all methods properly
handle transfer timeouts (as opposed to connection timeouts).
Set the sigalrm flag if a timeout occurs in the main loop.
Move the signal: label up a little so we still set the atime and mtime
when the transfer times out or is interrupted, so that restarted transfers
will work as expected (as long as the file still exists).
MFC after: 2 weeks
2002-10-27 15:15:13 +00:00
des
19b896d323
s/optarg/s/ (cut'n'paste braino)
...
Spotted by: kris
2002-08-27 10:19:24 +00:00
des
403946d7ed
fetch(1) is WARNS-5 clean (tested on i386 and Alpha)
2002-07-28 21:09:57 +00:00
des
9413d584e7
Use strtol(3) instead of a home-grown version, and fix a "possibly
...
unitialized variable" warning.
2002-07-28 21:09:25 +00:00
des
5a55cbe1eb
Reorder LDADD to fix static linking.
2002-06-12 12:46:50 +00:00
ru
876652376e
libfetch now depends on libcrypto and libssl.
2002-06-06 13:45:46 +00:00
des
88a7e46829
Figures they had to call it NOCRYPT instead of NOCRYPTO.
2002-06-05 21:28:47 +00:00
des
694ae4fc45
During buildworld, "regular" libraries are built before crypto stuff, so
...
libfetch can't depend on lib{crypto,ssl}. Move the dependency to fetch
until we can figure out how to fix this.
2002-06-05 21:25:33 +00:00
des
4d6b787d2d
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
charnier
a07fb1cc07
Use `The .Nm utility'
2002-04-19 23:44:58 +00:00
bde
c2a1e52896
Restored the part of 1.45 that was clobbered in rev.1.46:
...
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.
2002-03-27 02:23:18 +00:00
charnier
896929d2ba
Add FBSDID. Remove unused include. Getopt returns -1 not EOF.
2002-03-26 12:09:49 +00:00
bde
b3ad16b2d7
#include <sys/time.h> instead of depending on namespace pollution in
...
<sys/stat.h> for the declaration of struct timeval.
Removed unused includes (<time.h> doesn't declare anything of interest;
only <sys/time.h> does).
Sorted includes a bit.
2002-02-25 05:00:39 +00:00
des
4c0d10cd1b
If downloading to a temporary file, set the timestamp on the temp file, not
...
on the file we're replacing.
PR: bin/34992
Submitted by: Shunichiro Ariura <syun1rou@blackshell.org>
MFC after: 1 week
2002-02-16 14:02:57 +00:00
markm
ae2558974f
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
ru
66616c46ce
Document fetch(1) reaction to SIGINFO.
...
PR: docs/33640
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
Approved by: des
2002-01-16 16:16:08 +00:00
des
a1922f6bbf
Set fetchDebug if v_level is 3 or more.
...
PR: bin/32615
MFC after: 1 week
2001-12-09 15:07:26 +00:00
iedowse
526c677d03
Remove an extraneous argument to fprintf that -Wformat noticed.
...
Reviewed by: des
2001-11-10 18:39:54 +00:00
des
572d6d9be0
Remove a debugging warnx() that got committed by mistake.
2001-11-03 01:31:46 +00:00
des
3274d63b58
Don't print running stats unless we're the foreground process.
...
PR: 30764
2001-09-23 22:03:39 +00:00
mike
fe5200b07e
Add a cast to silence a warning (error because of WARNS=2) on Alpha.
...
Discussed with: des
2001-09-10 17:23:57 +00:00
des
80b788da32
If the local file does not exist, or is a regular file, and we're not trying
...
to resume a transfer, download the requested document into a temporary file
which we later rename. This avoids leaving half-completed files around in
case of a crash (it'll still leave a half-completed file, but with a hope-
fully non-conflicting name), and should reduce the need for human inter-
vention on ports-building machines.
The temporary file name for "foo/bar" is constructed by invoking mkstemps()
with the pattern "foo/.fetch.XXXXXX.bar"
Requested by: obrien
2001-09-08 15:17:15 +00:00
des
4debb1b901
Remove a blank line that snuck in with the previous commit.
...
Set the default timeout to 120 seconds instead of 0 (no timeout).
2001-08-18 10:48:55 +00:00
des
f1dd0e9302
Add some comments.
2001-08-17 22:22:45 +00:00
se
815cafd7d0
Include value of command line argument that causes an error message or
...
warning in said message, since fetch may be run from a makefile or script
which does not print the command line.
Approved by: des
2001-07-28 21:34:56 +00:00
des
45c6fea352
If we're writing to stdout, we don't care about the size.
...
Submitted by: wollman
2001-07-17 21:23:43 +00:00
des
1d3699a988
WARNS cleanup + remove an unused macro and an unused function argument.
2001-07-17 21:22:32 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
des
edbf7599a6
Fix an embarassing if-test-reversal bug that broke scheme guessing.
2001-07-08 15:17:26 +00:00
des
e576be9a24
Don't try to print a completion percentage for zero-size files.
...
PR: 27780
Submitted by: Craig Leres <leres@ee.lbl.gov>
2001-06-01 10:24:58 +00:00
des
c652271f23
Damn. Fix typo in previous commit.
2001-05-27 10:46:19 +00:00