<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/fetch/fetch.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2026-07-13T06:43:46Z</updated>
<entry>
<title>fetch: Stop setting an alarm</title>
<updated>2026-07-13T06:43:46Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-07-13T06:43:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3dddfe29248c47d1a80dc96a76a308ae910b2a24'/>
<id>urn:sha1:3dddfe29248c47d1a80dc96a76a308ae910b2a24</id>
<content type='text'>
Now that fetchTimeout works reliably, setting an alarm is not only no
longer necessary but counterproductive, as it will trigger even if the
connection is not actually stalled but merely slow.

While here, improve the wording of the manual page's description of the
various options for setting a timeout.

MFC after:	1 week
Reviewed by:	op
Differential Revision:	https://reviews.freebsd.org/D57911
</content>
</entry>
<entry>
<title>Revert "fetch: Stop setting an alarm"</title>
<updated>2026-06-29T15:53:53Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-29T15:53:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1b5f832e268f1f1092d0ebfc3bab4a7228aae20b'/>
<id>urn:sha1:1b5f832e268f1f1092d0ebfc3bab4a7228aae20b</id>
<content type='text'>
This reverts commit 23380f3e6ac9334e85489f92f7f20b700ede3368.
</content>
</entry>
<entry>
<title>fetch: Stop setting an alarm</title>
<updated>2026-06-29T13:49:19Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-06-27T15:41:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=23380f3e6ac9334e85489f92f7f20b700ede3368'/>
<id>urn:sha1:23380f3e6ac9334e85489f92f7f20b700ede3368</id>
<content type='text'>
Now that fetchTimeout works reliably, setting an alarm is not only no
longer necessary but counterproductive, as it will trigger even if the
connection is not actually stalled but merely slow.

While here, improve the wording of the manual page's description of the
various options for setting a timeout.

MFC after:	1 week
</content>
</entry>
<entry>
<title>fetch: correct env var name for --crl option to work</title>
<updated>2024-10-07T09:37:28Z</updated>
<author>
<name>Franco Fichtner</name>
<email>franco@opnsense.org</email>
</author>
<published>2024-10-07T09:36:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d7a33888e09f86feb4c2c9f9640d936be07ce9d'/>
<id>urn:sha1:1d7a33888e09f86feb4c2c9f9640d936be07ce9d</id>
<content type='text'>
Reviewed by:	grembo
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D46973
</content>
</entry>
<entry>
<title>fetch(1): suppress "Not Modified" in quiet mode</title>
<updated>2024-09-07T02:14:23Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2024-09-07T02:14:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7a6309fdc79427b0a7a5c3876daba150d946ae22'/>
<id>urn:sha1:7a6309fdc79427b0a7a5c3876daba150d946ae22</id>
<content type='text'>
"fetch -qi" should skip printing "Not Modified" for successful
http(s) request. Still print it by default (v_level == 1).

MFC after:	1 week
</content>
</entry>
<entry>
<title>usr.bin: Automated cleanup of cdefs and other formatting</title>
<updated>2023-11-27T05:24:01Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-24T20:12:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5e3934b15a2741b2de6b217e77dc9d798d740804'/>
<id>urn:sha1:5e3934b15a2741b2de6b217e77dc9d798d740804</id>
<content type='text'>
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+&lt;sys/cdefs.h&gt;.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/types.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/param.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/capsicum.h&gt;/

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>fetch: make -S argument accept values &gt; 2GB</title>
<updated>2022-02-20T14:24:43Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2022-02-20T14:24:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32066c96fa00fc19c8355e1956ca5aa9ead37673'/>
<id>urn:sha1:32066c96fa00fc19c8355e1956ca5aa9ead37673</id>
<content type='text'>
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.

Reported by:	antoine
MFC after:	3 days
</content>
</entry>
<entry>
<title>fetch(1): more fixes for soft failure handling</title>
<updated>2022-01-25T05:48:28Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2022-01-25T05:46:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=85f15576b423b9ad5b8a9e6dab3e71558ebe4335'/>
<id>urn:sha1:85f15576b423b9ad5b8a9e6dab3e71558ebe4335</id>
<content type='text'>
Fix logic error introduced in my commit
bf599c03f09dea0f7e188e002b42d782af6841c3

Also, authorization errors should not be considered as soft failures.
</content>
</entry>
<entry>
<title>fetch(1): fix error in previous commit</title>
<updated>2022-01-24T08:07:18Z</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2022-01-24T08:07:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=08a2504a207c9302939bc0d1173fe44875e2a2e4'/>
<id>urn:sha1:08a2504a207c9302939bc0d1173fe44875e2a2e4</id>
<content type='text'>
strncmp() compares terminating zero and sizeof() includes it.
Un-obsfuscate the code and show what it is indended to do.
</content>
</entry>
</feed>
