aboutsummaryrefslogtreecommitdiff
path: root/contrib/tnftp
Commit message (Collapse)AuthorAgeFilesLines
* Remove ftpd(8)Lexi Winter2025-09-291-3/+2
| | | | | | | | | | | | | | | | | | | | | This was previously deprecated and is slated for removal in 15.0. Users who still need ftpd(8) can install the ftp/freebsd-ftpd port. Retain the ftp(d) PAM services since other FTP daemons use them. Update /etc/inetd.conf to point to /usr/local. Add ftpd to ObsoleteFiles, but do not list configuration files since users may want to preserve these to use with the freebsd-ftpd port. There is still some language in the manual referring to ftpd(8) which is relevant to the port, which has been retained but updated to reference the port. MFC after: 3 days Relnotes: yes Reviewed by: cperciva Differential Revision: https://reviews.freebsd.org/D52739
* Fix poor performance of ftp(1) due to small SO_SNDBUF and SO_RCVBUF.Hiroki Sato2020-02-274-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ftp(1) from vendor/tnftp always tried the following for every TCP connection: 1. Get the current buffer length of SO_SNDBUF and SO_RCVBUF by getsockopt(2). 2. Invoke setsockopt(2) to set them to the same values after checking if they are in a range between 8 KiB to 8 MiB. This behavior broke dynamic buffer sizing enabled by default (net.inet.tcp.{recv,send}buf_auto sysctls) and led to a very poor transfer rate. The fetch(1) utility does not have this problem. This change prevents SO_SNDBUF and SO_RCVBUF from configuring when the buffer auto-sizing is enabled unless the buffer sizes are explicitly specified. PR: 240827 Spotted by: Yuichiro NAITO MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D23732 Notes: svn path=/head/; revision=358405
* Switch the default pager for most commands to lessAlan Somers2018-08-081-1/+1
| | | | | | | | | | | | Finally, a pager for the nineties. MFC after: Never Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D13465 Poll: https://reviews.freebsd.org/V7 Notes: svn path=/head/; revision=337497
* ftp(1): Use closefrom() instead of individual close()s.Pedro F. Giffuni2018-01-291-2/+1
| | | | | | | | | | Use closefrom(3) instead of manually closing all file descriptors between 3 and 19. Obtained from: OpenBSD (CVS 1.80) Notes: svn path=/head/; revision=328525
* Fix warnings in tnftp about invalid constant conversions, e.g.:Dimitry Andric2016-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | contrib/tnftp/src/ftp.c:2067:11: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion] buf[0] = IAC; ~ ^~~ /usr/include/arpa/telnet.h:39:13: note: expanded from macro 'IAC' #define IAC 255 /* interpret as command: */ ^~~ contrib/tnftp/src/ftp.c:2068:11: error: implicit conversion from 'int' to 'char' changes value from 244 to -12 [-Werror,-Wconstant-conversion] buf[1] = IP; ~ ^~ /usr/include/arpa/telnet.h:50:12: note: expanded from macro 'IP' #define IP 244 /* interrupt process--permanently */ ^~~ Use an unsigned char buffer instead. MFC after: 1 week Notes: svn path=/head/; revision=305085
* [SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).Dag-Erling Smørgrav2014-11-041-14/+22
| | | | | | | | | [SA-14:26] Fix remote command execution in ftp(1). Approved by: so (des) Notes: svn path=/head/; revision=274106
* Update NetBSD Foundation copyrights to 2-clause BSDEd Maste2014-03-181-7/+0
| | | | | | | | | | | | | | The NetBSD Foundation states "Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license." This change removes clauses 3 and 4 from copyright / license blocks that list The NetBSD Foundation as the only copyright holder. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=263289
* Move determination of socket buffer sizes from startup to the first time aGavin Atkinson2012-03-102-31/+27
| | | | | | | | | | | | | | | | | socket is used. The previous code structure assumed that AF_INET sockets were always available, which is an invalid assumption on IPv6-only systems. This merges the fololowing revisions from NetBSD: src/usr.bin/ftp/main.c 1.120 src/usr.bin/ftp/util.c 1.156 PR: bin/162661 Tested by: bz Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=232779
* Merge tnftp-20100108 from the vendor branch into head.Gavin Atkinson2011-06-2037-11316/+4900
| | | | | | | | PR: bin/112288 bin/120256 bin/129014 bin/145528 MFC after: 1 month Notes: svn path=/head/; revision=223328
* Copy lukemftp to its new home, tnftp. I'm doing this in stages so as toGavin Atkinson2011-06-1934-0/+24972
not confuse the CVS exporter. Notes: svn path=/head/; revision=223308