Import NetBSD-ftp 20260208
Notable changes since import NetBSD-20260207:
* Implement custom HTTP headers with a portable idiom.
* Emit custom HTTP headers in provided order, not last in first out.
Import NetBSD-ftp 20260207
Notable changes since import NetBSD-20230505:
* Ignore unexpected EOF in openssl 3.0.
* Fix HTTPS through a proxy.
* Fix creation of empty downloaded files.
* Improve manual page.
* Add -b BUFLEN to adjust size of buffer for HTTP response line parsing.
* Consistently use "KiB" instead of "K".
* Add -h HEADER to support custom HTTP headers. (PR 58581).
* Improve bounds checking.
* Exit non-zero if a HTTP transfer is shorter than expected. PR 54713, PR 58281.
* Improve -? help display.
* Add "connect" as a synonym for "open".
* Fix ASCII mode transfers when progress bar is enabled. PR 59587.
* Limit network I/O transfers to 128 KiB.
* Simplify socket buffer handling to improve performance. PR 59865.
agcre: fix up beginning of word and end of word tests - use parentheses to
make it obvious to the compiler when to short-circuit.
Add tests for beginning word and end of word (with and without \< and \> guards)
Bump version to 20250722
workaround FreeBSD <fts.h> changing fts_open()'s compar signature
FreeBSD 5.2 changed fts_open()'s compar function signature by
adding extra const to the pointer arguments, and compilers
may complain about the mismatch.
Add workaround if compiling for FreeBSD and its <fts.h>.
tnftpd 20231001 release
Changes since tnftpd 20200704
* Security fixes to improve error handling when switching UID/GID,
and to prevent MLSD and MLST before authentication succeeds.
* Fix buffer overflows when counting users, and when authenticating
using PAM.
always use $YACC even without --enable-maintainer-mode
Provide custom rules to create ftpcmd.c from $(YACC) ftpcmd.y,
instead of relying upon automake's default rules, so that
we always use $(YACC) even without --enable-maintainer-mode,
and we ship ftpcmd.y not ftpcmd.c.
(There should be an easier way in automake to do this.)
Display YACC and YFLAGS at end of configure.
configure: improve check for inet_net_pton()
Look for inet_net_pton() in -lresolv (for glibc).
Move library checks after header checks, in case latter are needed for former.
Display vars at end of configure: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS
Import NetBSD-ftpd 20230922
Notable changes since import tag NetBSD-20200615:
- Treat failed chdir/chroot for guest and chroot accounts as fatal.
Also treat failed set{e,}(u,g}id calls as fatal.
Addresses CVE-2020-7468, via FreeBSD.
- Improve seteuid error handling, per suggestion by Simon Josefsson.
- Add missing check_login checks for MLST and MLSD.