aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* The FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored becauseDag-Erling Smørgrav2009-01-171-3/+4
| | | | | | | | | | | T_secs already had a non-zero default. Unbreak by moving the default to ftp_timeout / http_timeout. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> MFC after: 2 weeks Notes: svn path=/head/; revision=187361
* 1. Update fetch to consistently return 1 on error, as the man page states,Murray Stokely2008-12-171-6/+5
| | | | | | | | | | | | | rather than usually returning 1 but in a few instances using a sysexits(3) return value. 2. Remove a few unused variables from libfetch. PR: docs/122470 (1, only) Reviewed by: des Notes: svn path=/head/; revision=186241
* Add support for HTTP 1.1 If-Modified-Since behavior.Murray Stokely2008-12-152-5/+40
| | | | | | | | | | | | | | | | | fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks Notes: svn path=/head/; revision=186124
* Improve usage and sync SYNOPSIS with usage.Ruslan Ermilov2008-12-132-10/+17
| | | | Notes: svn path=/head/; revision=186043
* Apply the same defaults to https as to http.Dag-Erling Smørgrav2008-12-111-2/+3
| | | | | | | | Submitted by: Mike Tancsa <mike@sentex.net> MFC after: 1 week Notes: svn path=/head/; revision=185912
* Use the SCHEME_ knobs rather than knowing what they expand to.David E. O'Brien2008-08-211-2/+2
| | | | | | | Reviewed by: des Notes: svn path=/head/; revision=181962
* List all environment variables supported by libfetch, along with a referenceDag-Erling Smørgrav2007-12-281-9/+19
| | | | | | | | | to the fetch(3) man page. MFC after: 1 week Notes: svn path=/head/; revision=174960
* Try to preserve ownership and permissions when replacing an existing file.Dag-Erling Smørgrav2006-11-101-0/+2
| | | | | | | | | PR: bin/104702 Submitted by: Kevin Day <toasty@dragondata.com> MFC after: 1 week Notes: svn path=/head/; revision=164152
* Fix a typo.Joseph Koshy2006-04-221-2/+2
| | | | | | | | Submitted by: Pawel Worach <pawel.worach at gmail dot com> MFC after: 1 week Notes: svn path=/head/; revision=157953
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-1/+3
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Only clear sb.st_size if it is clearly wrong or meaningless. This fixesDag-Erling Smørgrav2005-12-301-5/+5
| | | | | | | | | | mirror mode. PR: bin/86940 MFC after: 2 weeks Notes: svn path=/head/; revision=153919
* Reflect progress in process title.Dag-Erling Smørgrav2005-12-301-0/+4
| | | | | | | | Submitted by: flz MFC after: 2 weeks Notes: svn path=/head/; revision=153894
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-8/+8
| | | | Notes: svn path=/head/; revision=140420
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* NOCRYPT -> NO_CRYPTRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139113
* Fix buffer overflow. This is FreeBSD-SA-04:16.fetch.Colin Percival2004-11-181-1/+2
| | | | | | | Approved by: des Notes: svn path=/head/; revision=137854
* Update copyright years.Dag-Erling Smørgrav2004-09-212-2/+2
| | | | Notes: svn path=/head/; revision=135546
* The check for r_flag was accidentally removed in the previous commit.Dag-Erling Smørgrav2004-08-261-1/+1
| | | | | | | | Submitted by: SANETO Takanori <sanewo@ba2.so-net.ne.jp> MFC after: 3 days Notes: svn path=/head/; revision=134350
* Fix a couple of edge cases in which sb.st_size may be incorrect orDag-Erling Smørgrav2004-08-151-5/+16
| | | | | | | | | | | meaningless. In particular, don't assume that it is left untouched if stat(2) fails; that assumption happens to fail at high optimization levels on some platforms. MFC after: 1 week Notes: svn path=/head/; revision=133779
* Join the 21st century: Cryptography is no longer an optional componentColin Percival2004-08-061-1/+0
| | | | | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004 Notes: svn path=/head/; revision=133196
* Document the behaviour of the "-o file" option when "file" is a directoryColin Percival2004-07-301-0/+4
| | | | | | | | | (downloaded file(s) are created inside the directory). MFC after: 3 days Notes: svn path=/head/; revision=132879
* Don't strip trailing linear whitespace from passwords.Dag-Erling Smørgrav2004-07-271-5/+5
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=132696
* Style nits.Dag-Erling Smørgrav2004-07-271-5/+4
| | | | Notes: svn path=/head/; revision=132695
* Truncate long file names in stat_display(), as was originally intended.Dag-Erling Smørgrav2004-07-051-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=131615
* The description of the -S option in the man page says we won't fail if theDag-Erling Smørgrav2004-06-241-1/+0
| | | | | | | | | | remote size is unknown, but we do. Resolve this in the man page's favor. Requested by: Andre Albsmeier <andre.albsmeier@siemens.com> MFC after: 1 week Notes: svn path=/head/; revision=131052
* Fix integer overflow in the file size output when dealing withLukas Ertl2004-05-191-3/+3
| | | | | | | | | large files (i.e. DVD images). Reviewed by: des@ Notes: svn path=/head/; revision=129440
* Restore part of the word that got (accidentally) removed.Ruslan Ermilov2004-05-191-2/+2
| | | | | | | Removed whitespace at EOL. Notes: svn path=/head/; revision=129427
* Workaround for servers that ignore byte ranges when using chunkedDag-Erling Smørgrav2004-04-061-1/+1
| | | | | | | | | encoding. MFC after: 3 days Notes: svn path=/head/; revision=127941
* Remove EXAMPLES section which duplicates text in fetch(3).Dag-Erling Smørgrav2004-02-271-22/+0
| | | | Notes: svn path=/head/; revision=126307
* Use %zu for size_t, like God intended.Dag-Erling Smørgrav2004-02-181-1/+1
| | | | Notes: svn path=/head/; revision=125977
* Fix printf() format bug in previous commit (size_t != int).Dag-Erling Smørgrav2004-02-181-17/+19
| | | | | | | | | | Use %ju and an (uintmax_t) cast to print size_t values. Use %jd and an (intmax_t) cast to print off_t values. Use off_t variables to hold the difference between two off_t values. Don't bother with unsigned char where char will do nicely. Notes: svn path=/head/; revision=125976
* Revamp the statistics code, and switch to a much more compact displayDag-Erling Smørgrav2004-02-181-48/+56
| | | | | | | | format. The old code tried to produce the exact same output as the pre-libfetch implementation, but I no longer see any value in this. Notes: svn path=/head/; revision=125965
* Remove the inadvertant HTML additions to this man page.Wes Peters2004-01-281-4/+4
| | | | | | | | | These appear to have been inserted in the PR text by gnatsweb. Noticed by: des (maintainer) Notes: svn path=/head/; revision=125154
* Revert changes of rev 1.55; replace with strong encouragement toWes Peters2004-01-261-87/+14
| | | | | | | | | read fetch(3) as well. Requested by: des (maintainer) Notes: svn path=/head/; revision=125005
* Previous commit did the reverse of what the log message said (and ofDag-Erling Smørgrav2004-01-261-1/+1
| | | | | | | what I intended to do). Really remove my middle name. Notes: svn path=/head/; revision=125001
* I don't normally use my middle name, so remove it from attributions inDag-Erling Smørgrav2004-01-251-3/+3
| | | | | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate. Notes: svn path=/head/; revision=124963
* Document fetch(1) environment variables in fetch(1) man page, instead ofWes Peters2004-01-231-12/+108
| | | | | | | | | | taking lazy users on the arduous journey through SEE ALSO to fetch(3). PR: docs/61759 Submitted by: Christian S.J. Peron <maneo@bsdpro.com> Notes: svn path=/head/; revision=124852
* Finish the reversion of rev. 1.52.Ruslan Ermilov2003-09-081-3/+2
| | | | Notes: svn path=/head/; revision=119892
* Make sure the crypto versions of libfetch and fetch(1) appear inRuslan Ermilov2003-07-221-0/+1
| | | | | | | | | the "crypto" distribution. Approved by: des Notes: svn path=/head/; revision=117890
* Revert 1.52. This should have been added to fetch.3.Tom Rhodes2003-06-101-29/+1
| | | | | | | Discussed with: des, ru Notes: svn path=/head/; revision=116168
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* Add an EXAMPLES section.Tom Rhodes2003-05-171-1/+30
| | | | | | | | | | Xref sh(1) as we use environment variables. PR: 43899 Reviewed by: des Notes: svn path=/head/; revision=115099
* Mark fetch(1) as c99- and WARNS6-clean.Dag-Erling Smørgrav2003-05-011-1/+2
| | | | Notes: svn path=/head/; revision=114422
* Use floating point arithmetic to compute the ETA to avoid integer overflowDag-Erling Smørgrav2003-03-111-1/+1
| | | | | | | during slow transfers of large files. Notes: svn path=/head/; revision=112114
* Clean up the ETA logic a bit and make sure it works for restarted transfers.Dag-Erling Smørgrav2003-03-111-7/+8
| | | | Notes: svn path=/head/; revision=112083
* Clarify that -r implies -R.Dag-Erling Smørgrav2003-03-111-0/+2
| | | | Notes: svn path=/head/; revision=112082
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-241-1/+1
| | | | Notes: svn path=/head/; revision=111447
* Slight cleanup of the ETA / BPS code. Avoid a division by zero.Dag-Erling Smørgrav2003-01-231-14/+12
| | | | Notes: svn path=/head/; revision=109735
* Document netrc support.Dag-Erling Smørgrav2003-01-221-0/+11
| | | | Notes: svn path=/head/; revision=109703