summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* Add phttpget(8) .Xr to fetch(1).trasz2016-03-291-1/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundlesgrembo2016-03-191-8/+22
| | | | | | | Reviewed by: wblock Approved by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5558
* Add META_MODE support.sjg2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-30/+12
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-4/+4
| |\
| * | Updated dependenciessjg2014-05-161-0/+1
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-282-7/+8
| |\ \ \
| * | | | Updated dependenciessjg2013-10-131-0/+6
| | | | |
| * | | | Merge from headsjg2013-09-052-38/+279
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| * | | | | Sync with HEAD.obrien2013-02-081-13/+31
| |\ \ \ \ \
| | \ \ \ \ \
| | \ \ \ \ \
| *-. \ \ \ \ \ Sync from headsjg2012-11-042-44/+45
| |\ \ \ \ \ \ \
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+17
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | Remove defunct SSLv2 support from fetch(1) and fetch(3).jkim2015-03-252-21/+11
| | | | | | | |
* | | | | | | | Convert to usr.bin/ to LIBADDbapt2014-11-251-9/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-4/+4
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | from the latter.
* | | | | Increase the default (and minimum) buffer size from 4 kB to 16 kB. Also,des2014-01-282-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | propagate the buffer size to libc, which uses a 1 kB buffer by default, negating any hypothetical benefit of increasing fetch(1)'s buffer size. MFC after: 3 days
* | | | | whitespace and bump copyrightdes2014-01-281-3/+3
| |_|_|/ |/| | |
* | | | Include an Accept header in requests.des2013-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | PR: kern/180917 MFC after: 1 week
* | | | Add Michael Gmelin's name to the copyright statement.des2013-07-301-1/+2
| | | |
* | | | Remove EOL whitespace.joel2013-07-281-1/+1
| | | |
* | | | Implement certificate verification, and many other SSL-relateddes2013-07-262-35/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | imrovements; complete details in the PR. PR: kern/175514 Submitted by: Michael Gmelin <freebsd@grem.de> MFC after: 1 week
* | | | mdoc nitdes2013-07-211-1/+2
| | | |
* | | | Correct check to see if file changes.eadler2013-06-021-1/+1
| |_|/ |/| | | | | | | | | | | Reported by: swildner@DragonFlyBSD.org Reviewed by: des
* | | Fix bandwidth reporting when doing a restarted download with "-r".andre2012-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The offset is already accounted for in xs->lastrcvd and doesn't have to be subtracted again. Reported by: Florian Smeets <flo@smeets.im> Submitted by: Mateusz Guzik <mjguzik@gmail.com> Tested by: Florian Smeets <flo@smeets.im> MFC after: 1 week
* | | Add check for failure of mkstemp and setenv.eadler2012-12-081-2/+6
| | | | | | | | | | | | | | | | | | | | | Reviewed by: des Approved by: cperciva (implicit) Obtained from: DragonFlyBSD MFC after: 1 week
* | | Change fetch(1) to:andre2012-11-161-11/+25
| |/ |/| | | | | | | | | | | | | | | | | | | o Report the instantaneous bandwidth instead of an average since the beginning of the download. o At the finish of the download report the average bandwidth and also the total time it took instead of 00m00s. Reviewed by: des MFC after: 1 week
* | More -Wmissing-variable-declarations fixes.ed2012-10-191-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* | Use libmd if and only if OpenSSL is not available.des2012-09-141-3/+4
|/ | | | | PR: bin/171402 MFC after: 3 days
* Revert r232274 - unauthorized, unnecessary and incorrect.des2012-05-261-7/+2
|
* General mdoc(7) and typo fixes.gjb2012-05-101-1/+1
| | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Document the 'URL' argument.obrien2012-02-281-2/+7
|
* Fix two issues related to the use of SIGINFO in fetch(1) to displaydes2012-01-181-7/+12
| | | | | | | | | | | | | progress information. The first is that fetch_read() (used in the HTTP code but not the FTP code) can enter an infinite loop if it has previously been interrupted by a signal. The second is that when it is interrupted, fetch_read() will discard any data it may have read up to that point. Luckily, both bugs are extremely timing-sensitive and therefore difficult to trigger. PR: bin/153240 Submitted by: Mark <markjdb@gmail.com> MFC after: 3 weeks
* latin1 -> utf8des2011-10-041-1/+1
|
* Document the fact that passive mode is now the default.des2011-09-272-8/+10
| | | | Update copyright dates and strip my middle name.
* Use fseeko() instead of fseek(). The rest of the code is off_t-aware,des2011-09-271-2/+2
| | | | | | | | but the use of fseek() means fetch(1) can't correctly resume a transfer that was interrupted past the 2 GB mark. Pointed out by: ache@ MFC after: 3 weeks
* Followup to r225599: the fseek() was a no-op since the file was openeddes2011-09-271-8/+8
| | | | | | | | | in append mode. Open it in read-write mode instead. Also move the fseek up one level to cover the (unlikely but not impossible) case where the server accepts ranges but does not send a Content-Size header. PR: bin/117277 MFC after: 3 weeks
* When resuming an HTTP download, we failed to verify that the rangedes2011-09-151-0/+14
| | | | | | | | | | | | | | | | returned by the server matched what we requested, and blindly appended what we received to what we already had. This could go two ways: if the delivered offset was higher than expected, the local file would contain duplicate data, while if it was lower than expected, there would be data missing from the middle of the file. Furthermore, if the transfer was interrupted again, each subsequent attempt would compound the error. Fix the first problem by restarting the transfer from scratch if there is a gap, and the second by explicitly seeking to the correct location in the local file so as to overwrite any duplicated data. PR: bin/117277 Approved by: re (kib) MFC after: 3 weeks
* Fixed static linkage.ru2010-02-261-2/+2
|
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Treat an empty argument as an error, instead of fetching theru2009-12-301-0/+5
| | | | | | contents of the root directory. MFC after: 1 week
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* The FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored becausedes2009-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
* 1. Update fetch to consistently return 1 on error, as the man page states,murray2008-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 > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M usr.bin/fetch/fetch.c M lib/libfetch/fetch.c
* Add support for HTTP 1.1 If-Modified-Since behavior.murray2008-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
* Improve usage and sync SYNOPSIS with usage.ru2008-12-132-10/+17
|
OpenPOWER on IntegriCloud