Module Name: src Committed By: lukem Date: Thu Jun 3 10:23:33 UTC 2021
Modified Files: src/usr.bin/ftp: Makefile ssl.c ssl.h version.h Log Message: use fetch_*() for I/O with SMALLPROG / !WITH_SSL builds Adapt the SMALLPROG / -UWITH_SSL build to also use the fetch_*() methods from ssl.c, instead of using stdio, as stdio isn't robust when using interruptable signals. Disable ssl-specific support in the fetch_*() methods if WITH_SSL isn't defined, so SMALLPROG still doesn't have ssl support (as expected). The resulting SMALLPROG binary is slightly larger than before (e.g., 157KiB vs 153KiB on amd64). Set version to 20210603 for this fix and the SO_KEEPALIVE fix for PR 56129. PR install/56219 To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/usr.bin/ftp/Makefile cvs rdiff -u -r1.9 -r1.10 src/usr.bin/ftp/ssl.c cvs rdiff -u -r1.4 -r1.5 src/usr.bin/ftp/ssl.h cvs rdiff -u -r1.92 -r1.93 src/usr.bin/ftp/version.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.