summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* s/optarg/s/ (cut'n'paste braino)des2002-08-271-6/+4
| | | | Spotted by: kris
* fetch(1) is WARNS-5 clean (tested on i386 and Alpha)des2002-07-281-0/+1
|
* Use strtol(3) instead of a home-grown version, and fix a "possiblydes2002-07-281-36/+24
| | | | unitialized variable" warning.
* Reorder LDADD to fix static linking.des2002-06-121-2/+2
|
* libfetch now depends on libcrypto and libssl.ru2002-06-061-1/+1
|
* Figures they had to call it NOCRYPT instead of NOCRYPTO.des2002-06-051-1/+1
|
* During buildworld, "regular" libraries are built before crypto stuff, sodes2002-06-051-0/+4
| | | | | libfetch can't depend on lib{crypto,ssl}. Move the dependency to fetch until we can figure out how to fix this.
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Use `The .Nm utility'charnier2002-04-191-2/+3
|
* Restored the part of 1.45 that was clobbered in rev.1.46:bde2002-03-271-0/+1
| | | | | #include <sys/time.h> instead of depending on namespace pollution in <sys/stat.h> for the declaration of struct timeval.
* Add FBSDID. Remove unused include. Getopt returns -1 not EOF.charnier2002-03-261-5/+5
|
* #include <sys/time.h> instead of depending on namespace pollution inbde2002-02-251-2/+2
| | | | | | | | | <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.
* If downloading to a temporary file, set the timestamp on the temp file, notdes2002-02-161-2/+2
| | | | | | | | on the file we're replacing. PR: bin/34992 Submitted by: Shunichiro Ariura <syun1rou@blackshell.org> MFC after: 1 week
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Document fetch(1) reaction to SIGINFO.ru2002-01-161-0/+12
| | | | | | PR: docs/33640 Submitted by: Maxim Konovalov <maxim@macomnet.ru> Approved by: des
* Set fetchDebug if v_level is 3 or more.des2001-12-091-0/+2
| | | | | PR: bin/32615 MFC after: 1 week
* Remove an extraneous argument to fprintf that -Wformat noticed.iedowse2001-11-101-1/+1
| | | | Reviewed by: des
* Remove a debugging warnx() that got committed by mistake.des2001-11-031-1/+0
|
* Don't print running stats unless we're the foreground process.des2001-09-231-0/+11
| | | | PR: 30764
* Add a cast to silence a warning (error because of WARNS=2) on Alpha.mike2001-09-101-1/+1
| | | | Discussed with: des
* If the local file does not exist, or is a regular file, and we're not tryingdes2001-09-081-27/+71
| | | | | | | | | | | | | 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
* Remove a blank line that snuck in with the previous commit.des2001-08-181-1/+1
| | | | Set the default timeout to 120 seconds instead of 0 (no timeout).
* Add some comments.des2001-08-171-3/+26
|
* 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>
OpenPOWER on IntegriCloud