<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/tftpd, branch stable/12</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>tftpd: cleanup after conflict resolution</title>
<updated>2023-08-19T19:28:49+00:00</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2023-08-19T19:28:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c6dc07c6f1a82ab8d97446f01eb0ec4832e92f0e'/>
<id>c6dc07c6f1a82ab8d97446f01eb0ec4832e92f0e</id>
<content type='text'>
Fixes:	a99bf9966590859d21d28ec63798820dc07e0ba8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes:	a99bf9966590859d21d28ec63798820dc07e0ba8
</pre>
</div>
</content>
</entry>
<entry>
<title>tftpd: introduce new option -S</title>
<updated>2023-08-19T06:53:28+00:00</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2023-07-20T20:11:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a99bf9966590859d21d28ec63798820dc07e0ba8'/>
<id>a99bf9966590859d21d28ec63798820dc07e0ba8</id>
<content type='text'>
Historically, tftpd disallowed write requests to existing files
that are not publicly writable. Such requirement is questionable at least.
Let us make it possible to run tftpd in chrooted environment
keeping files non-world writable.

New option -S enables write requests to existing files
for chrooted run according to generic file permissions.
It is ignored unless tftpd runs chrooted.

Requested by:	marck
Differential:	https://reviews.freebsd.org/D41090 (based on)

(cherry picked from commit 273a307d0b80743fb08e23237b3f74dc94a8fa2a)
(cherry picked from commit 03c2616dc530e5b23f06f9aa421012154590e578)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Historically, tftpd disallowed write requests to existing files
that are not publicly writable. Such requirement is questionable at least.
Let us make it possible to run tftpd in chrooted environment
keeping files non-world writable.

New option -S enables write requests to existing files
for chrooted run according to generic file permissions.
It is ignored unless tftpd runs chrooted.

Requested by:	marck
Differential:	https://reviews.freebsd.org/D41090 (based on)

(cherry picked from commit 273a307d0b80743fb08e23237b3f74dc94a8fa2a)
(cherry picked from commit 03c2616dc530e5b23f06f9aa421012154590e578)
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert the changes that removed support for old gcc, as stable/12 still</title>
<updated>2021-09-03T17:03:47+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2021-09-03T10:41:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=edc7b289b2b2681ec65c80011540fa17e1799936'/>
<id>edc7b289b2b2681ec65c80011540fa17e1799936</id>
<content type='text'>
uses gcc 4.2.1 for mips, powerpc and sparc64.

Revert "Revert part of r360964"

This reverts commit 2ebf10e7a1ced5d3dc4059d0595743277464d915.

Revert "Remove tests for obsolete compilers in the build system"

This reverts commit a606cb388f975561c37dbabc2fee82c27ef09929.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
uses gcc 4.2.1 for mips, powerpc and sparc64.

Revert "Revert part of r360964"

This reverts commit 2ebf10e7a1ced5d3dc4059d0595743277464d915.

Revert "Remove tests for obsolete compilers in the build system"

This reverts commit a606cb388f975561c37dbabc2fee82c27ef09929.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove tests for obsolete compilers in the build system</title>
<updated>2021-09-02T23:30:12+00:00</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2020-05-12T15:22:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a606cb388f975561c37dbabc2fee82c27ef09929'/>
<id>a606cb388f975561c37dbabc2fee82c27ef09929</id>
<content type='text'>
Assume gcc is at least 6.4, the oldest xtoolchain in the ports tree.
Assume clang is at least 6, which was in 11.2-RELEASE.  Drop conditions
for older compilers.

Reviewed by:	imp (earlier version), emaste, jhb
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D24802

(cherry picked from commit fac6dee9eb58b2b558fec2aea749460ca623f6d6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assume gcc is at least 6.4, the oldest xtoolchain in the ports tree.
Assume clang is at least 6, which was in 11.2-RELEASE.  Drop conditions
for older compilers.

Reviewed by:	imp (earlier version), emaste, jhb
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D24802

(cherry picked from commit fac6dee9eb58b2b558fec2aea749460ca623f6d6)
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Do a sweep and remove most WARNS=6 settings"</title>
<updated>2021-08-29T13:28:30+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2021-08-29T13:28:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e92630fc682954a7b4f724f4a8174d196d7d9cc5'/>
<id>e92630fc682954a7b4f724f4a8174d196d7d9cc5</id>
<content type='text'>
This reverts commit befc47822966, as it caused various CI build errors,
and we never merged the prerequisite commit fe815331bb40 ("build:
provide a default WARNS for all in-tree builds"). The latter is rather
intrusive, so I will avoid it.

Direct commit to stable/12 since the CI bots are broken.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit befc47822966, as it caused various CI build errors,
and we never merged the prerequisite commit fe815331bb40 ("build:
provide a default WARNS for all in-tree builds"). The latter is rather
intrusive, so I will avoid it.

Direct commit to stable/12 since the CI bots are broken.
</pre>
</div>
</content>
</entry>
<entry>
<title>Do a sweep and remove most WARNS=6 settings</title>
<updated>2021-08-29T10:49:28+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-10-01T01:10:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=befc478229660bca9cbda38d73f6b9d7c8918ded'/>
<id>befc478229660bca9cbda38d73f6b9d7c8918ded</id>
<content type='text'>
Repeating the default WARNS here makes it slightly more difficult to
experiment with default WARNS changes, e.g. if we did something absolutely
bananas and introduced a WARNS=7 and wanted to try lifting the default to
that.

Drop most of them; there is one in the blake2 kernel module, but I suspect
it should be dropped -- the default WARNS in the rest of the build doesn't
currently apply to kernel modules, and I haven't put too much thought into
whether it makes sense to make it so.

(cherry picked from commit 7cc42f6d25ef2e19059d088fa7d4853fe9afefb5)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Repeating the default WARNS here makes it slightly more difficult to
experiment with default WARNS changes, e.g. if we did something absolutely
bananas and introduced a WARNS=7 and wanted to try lifting the default to
that.

Drop most of them; there is one in the blake2 kernel module, but I suspect
it should be dropped -- the default WARNS in the rest of the build doesn't
currently apply to kernel modules, and I haven't put too much thought into
whether it makes sense to make it so.

(cherry picked from commit 7cc42f6d25ef2e19059d088fa7d4853fe9afefb5)
</pre>
</div>
</content>
</entry>
<entry>
<title>tftpd: tests: raise targeted cstd to c11</title>
<updated>2020-12-29T23:04:40+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-03-05T22:45:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=269b7d8ac1e533a1f214904ab7bce50f5c14fe3e'/>
<id>269b7d8ac1e533a1f214904ab7bce50f5c14fe3e</id>
<content type='text'>
r358556 added alignas() use to the functional tests, which isn't defined
until C11. Raise the -std to C11 to fix the build under freebsd-gcc{6,9}.

Reported by:	mhorne, Jenkins/CI

(cherry picked from commit 924e10b809a9fcbc8688c1b5848f60b48e6103fe)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
r358556 added alignas() use to the functional tests, which isn't defined
until C11. Raise the -std to C11 to fix the build under freebsd-gcc{6,9}.

Reported by:	mhorne, Jenkins/CI

(cherry picked from commit 924e10b809a9fcbc8688c1b5848f60b48e6103fe)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r368394:</title>
<updated>2020-12-18T10:08:11+00:00</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2020-12-18T10:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d2f4118a6d49e712c569e3ae3572959985c9f0c4'/>
<id>d2f4118a6d49e712c569e3ae3572959985c9f0c4</id>
<content type='text'>
When dropping packets (RRQ or WRQ) for debugging, report the send
operation as successful. Reporting a failure stops the transfer
instead of using timeouts.

MFC r368521:
Fix the TFTP client when performing a RRQ for files smaller than 512 bytes
and the server not sending an OACK:
* Close the file.
* Report the correct the number of received blocks.

MFC r368647:
Improve the counting of blocks used to transfer a file from the
server to the client in case of not using an OACK: Don't miss
the first block in case of it is not also the last one.

MFC r368657:
When receiving a file having a length, which is a mulitple of the blocksize,
close the file once it is received.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When dropping packets (RRQ or WRQ) for debugging, report the send
operation as successful. Reporting a failure stops the transfer
instead of using timeouts.

MFC r368521:
Fix the TFTP client when performing a RRQ for files smaller than 512 bytes
and the server not sending an OACK:
* Close the file.
* Report the correct the number of received blocks.

MFC r368647:
Improve the counting of blocks used to transfer a file from the
server to the client in case of not using an OACK: Don't miss
the first block in case of it is not also the last one.

MFC r368657:
When receiving a file having a length, which is a mulitple of the blocksize,
close the file once it is received.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 358556,360167: Add support for the TFTP windowsize option.</title>
<updated>2020-11-03T20:43:01+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-11-03T20:43:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7d1eb99a6a6da0ac8f8e6f97691ae1ee1269bb27'/>
<id>7d1eb99a6a6da0ac8f8e6f97691ae1ee1269bb27</id>
<content type='text'>
358556:
Add support for the TFTP windowsize option described in RFC 7440.

The windowsize option permits multiple blocks to be transmitted
before the receiver sends an ACK improving throughput for larger
files.

360167:
Abort transfer if fseeko() fails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
358556:
Add support for the TFTP windowsize option described in RFC 7440.

The windowsize option permits multiple blocks to be transmitted
before the receiver sends an ACK improving throughput for larger
files.

360167:
Abort transfer if fseeko() fails.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r366002:</title>
<updated>2020-09-29T01:54:04+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-09-29T01:54:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6a335da2379d42425edf92d78dd8d5dbbdc63ac0'/>
<id>6a335da2379d42425edf92d78dd8d5dbbdc63ac0</id>
<content type='text'>
tftpd: Check for errors from chdir()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tftpd: Check for errors from chdir()
</pre>
</div>
</content>
</entry>
</feed>
