]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tftpd: introduce new option -S
authorEugene Grosbein <eugen@FreeBSD.org>
Thu, 20 Jul 2023 20:11:33 +0000 (03:11 +0700)
committerEugene Grosbein <eugen@FreeBSD.org>
Sat, 19 Aug 2023 06:35:58 +0000 (13:35 +0700)
commitb71dde1aeba2972522a6742bbae77c2c6497eb01
treeb15ba568442a16d2be197043546c165deb43e0f4
parent8fe73008036b0770e3d0a5b41e9b845feb46bdf1
tftpd: introduce new option -S

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)
libexec/tftpd/tftpd.8
libexec/tftpd/tftpd.c