tnftp 20260211 release
Changes since tnftp 20230507:
- Improve transfer performance by simplifying socket buffer and
transfer buffer handling.
- Add -b BUFLEN to adjust size of buffer for HTTP response line parsing.
- Add -h HEADER to support custom HTTP headers.
- Add "connect" as a synonym for "open".
- Fix ASCII mode transfers when progress bar is enabled.
- Fix creation of empty downloaded files.
- Exit non-zero if a HTTP transfer is shorter than expected.
- Fix HTTPS through a proxy.
todo: sl_init and strvis updates not needed.
sl_init update only provides sl_delete(), which tnftp doesn't use.
strvis is only used by libedit history_save()/history_load(),
which tnftp doesn't use.
sync lib/libc/inet/inet_ntop.c 1.12
Update from othersrc/libexec/tnftpd/libnetbsd/inet_ntop.c 1.5:
Functional changes since upstream 1.3:
- 1.10, 1.12: always set errno when returning NULL
Retain tnftpd local changes:
- 1.3: don't use non-standard u_char u_int
- 1.1: only enable IPv6 ifdef INET6.
Comment out other unneeded upstream code to minimise differences.
fgetln: sync tools/compat/fgetln.c 1.12
Switch to a version that does not suffer from reporting the wrong length
if the file contains NULs. From OpenBSD.
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.