aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
Commit message (Collapse)AuthorAgeFilesLines
* fetch: correct env var name for --crl option to workFranco Fichtner2024-10-091-1/+1
| | | | | | | | Reviewed by: grembo MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D46973 (cherry picked from commit 1d7a33888e09f86feb4c2c9f9640d936be07ce9d)
* MFC: fetch(1): suppress "Not Modified" in quiet modeEugene Grosbein2024-09-141-5/+6
| | | | | | | "fetch -qi" should skip printing "Not Modified" for successful http(s) request. Still print it by default (v_level == 1). (cherry picked from commit 7a6309fdc79427b0a7a5c3876daba150d946ae22)
* libfetch, fetch: Stop recommending the use of ca_root_nss.Dag-Erling Smørgrav2023-12-131-12/+2
| | | | | | | | MFC after: 3 days Reviewed by: kevans, emaste Differential Revision: https://reviews.freebsd.org/D42119 (cherry picked from commit 2821a7498f65d357c68166e1978b491abef1ca4a)
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit fa9896e082a1)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-232-2/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* fetch: make -S argument accept values > 2GBStefan Eßer2022-03-041-1/+1
| | | | | | | | | | | | | | Use strtoll() to parse the argument of the -S option. FreeBSD has supported 64 bit file offsets for more than 25 years on all architectures and off_t is a 64 bit integer type for that reason. While strtol() returns a 64 bit value on 64 LP64 architectures, it is limit to 32 bit on e.g. i386. The strtoll() function returns a 64 but result on all supported architectures and therefore supports the possible file lengths and file offsets on 32 bit archtectures. (cherry picked from commit 32066c96fa00fc19c8355e1956ca5aa9ead37673)
* fetch(1): merge several improvements for handling of soft failuresEugene Grosbein2022-02-261-11/+34
| | | | | | | | | | | | | | | Let "fetch -a" resume truncated transfer automatically to perform another attempt if it obtained some new data in previous one making progress. Do not consider HTTP 5XX errors as soft failures. Also, authorization errors should not be considered as soft failures. (cherry picked from commit e3bad5f7aa86a0911cf8d28395e7a29395739985) (cherry picked from commit a4efbe0d6da28eea0de4d414af25e7853ab8adfa) (cherry picked from commit bf599c03f09dea0f7e188e002b42d782af6841c3) (cherry picked from commit 08a2504a207c9302939bc0d1173fe44875e2a2e4) (cherry picked from commit 85f15576b423b9ad5b8a9e6dab3e71558ebe4335)
* pkgbase: Create a FreeBSD-fetch packageEmmanuel Vadot2022-01-051-0/+1
| | | | | | | | | | | It's useful for small image to fetch some data but we don't want to install utilities nor bloat runtime. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33463 (cherry picked from commit 13ef8134efd1c0a39c2dab0197b5c4558101253e)
* fetch(1): Fix styleFernando Apesteguía2020-10-301-6/+7
| | | | | | | | | | | | | | | | | Fix style problems introduced in r367141: * s/Ql/Pa/ for file names * Break line properly in macro * Properly generate back slash character Not bumping .Dd Reported by: xtouqh@icloud.com, steffen@sdaoden.eu Approved by: 0mp@ Differential Revision: https://reviews.freebsd.org/D26946 Notes: svn path=/head/; revision=367160
* fetch(1): Add EXAMPLES sectionFernando Apesteguía2020-10-291-1/+46
| | | | | | | | | | Add a few examples covering flags: 1, R, a, o, q, r, s, v Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26946 Notes: svn path=/head/; revision=367141
* Don't explicitly specify c99 or gnu99 as the default is now gnu99.Xin LI2020-08-171-1/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=364292
* Through a combination of insufficient variable initialization andDag-Erling Smørgrav2018-09-101-41/+69
| | | | | | | | | | | | | | imprudent reuse of static buffers, the end-of-transfer statistics displayed when stdout is not a tty always ended up as 0 B / 0 Bps. Reorganize the code to use caller-provided buffers, tweak the ETA display a bit, and reduce the visual differences between the tty and non-tty end-of-transfer displays. PR: 202424 Approved by: re (gjb@) Notes: svn path=/head/; revision=338572
* Support If-Modified-Since for https as well as http.Dag-Erling Smørgrav2018-05-121-3/+4
| | | | | | | | | PR: 224426 Submitted by: zsnafzig@edu.uwaterloo.ca MFC after: 1 week Notes: svn path=/head/; revision=333572
* Fix spelling of --output long option in fetch.1Benjamin Kaduk2018-05-061-2/+2
| | | | | | | | PR: 228017 Reported by: rff1917@yahoo.com Notes: svn path=/head/; revision=333306
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add phttpget(8) .Xr to fetch(1).Edward Tomasz Napierala2016-03-291-1/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=297384
* Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundlesMichael Gmelin2016-03-191-8/+22
| | | | | | | | | | Reviewed by: wblock Approved by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5558 Notes: svn path=/head/; revision=297052
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-30/+12
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-4/+4
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-282-7/+8
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | | Updated dependenciesSimon J. Gerraty2013-10-131-0/+6
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | | | Merge from headSimon J. Gerraty2013-09-052-38/+279
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync with HEAD.David E. O'Brien2013-02-081-13/+31
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-042-44/+45
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Remove defunct SSLv2 support from fetch(1) and fetch(3).Jung-uk Kim2015-03-252-21/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=280630
* | | | | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-9/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | | | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-4/+4
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | | Increase the default (and minimum) buffer size from 4 kB to 16 kB. Also,Dag-Erling Smørgrav2014-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 Notes: svn path=/head/; revision=261234
* | | | | whitespace and bump copyrightDag-Erling Smørgrav2014-01-281-3/+3
| |_|_|/ |/| | | | | | | | | | | Notes: svn path=/head/; revision=261233
* | | | Include an Accept header in requests.Dag-Erling Smørgrav2013-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: kern/180917 MFC after: 1 week Notes: svn path=/head/; revision=253805
* | | | Add Michael Gmelin's name to the copyright statement.Dag-Erling Smørgrav2013-07-301-1/+2
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=253804
* | | | Remove EOL whitespace.Joel Dahl2013-07-281-1/+1
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=253736
* | | | Implement certificate verification, and many other SSL-relatedDag-Erling Smørgrav2013-07-262-35/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | imrovements; complete details in the PR. PR: kern/175514 Submitted by: Michael Gmelin <freebsd@grem.de> MFC after: 1 week Notes: svn path=/head/; revision=253680
* | | | mdoc nitDag-Erling Smørgrav2013-07-211-1/+2
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=253515
* | | | Correct check to see if file changes.Eitan Adler2013-06-021-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Reported by: swildner@DragonFlyBSD.org Reviewed by: des Notes: svn path=/head/; revision=251262
* | | Fix bandwidth reporting when doing a restarted download with "-r".Andre Oppermann2012-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 Notes: svn path=/head/; revision=244058
* | | Add check for failure of mkstemp and setenv.Eitan Adler2012-12-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: des Approved by: cperciva (implicit) Obtained from: DragonFlyBSD MFC after: 1 week Notes: svn path=/head/; revision=244037
* | | Change fetch(1) to:Andre Oppermann2012-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 Notes: svn path=/head/; revision=243147
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-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'. Notes: svn path=/head/; revision=241737
* | Use libmd if and only if OpenSSL is not available.Dag-Erling Smørgrav2012-09-141-3/+4
|/ | | | | | | | PR: bin/171402 MFC after: 3 days Notes: svn path=/head/; revision=240496
* Revert r232274 - unauthorized, unnecessary and incorrect.Dag-Erling Smørgrav2012-05-261-7/+2
| | | | Notes: svn path=/head/; revision=236110