aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd
Commit message (Collapse)AuthorAgeFilesLines
* Remove ftpd(8)Lexi Winter2025-09-2915-6854/+0
| | | | | | | | | | | | | | | | | | | | | 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
* ftpd: blocklist: Add a permission denied probeJose Luis Duran2025-09-291-0/+1
| | | | | | | | Reviewed by: emaste Approved by: emaste (mentor) Obtained from: NetBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52746
* ftpd: blocklist: Add an extra probeJose Luis Duran2025-09-291-0/+1
| | | | | | | | | Add a blocklist probe when user access is denied. Reviewed by: emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52747
* ftpd: Provide an option to turn off FTP anonymous usagejoyu liaonull2025-06-262-4/+23
| | | | | | | | | | | | ftpd provides the -n option to disable anonymous FTP access, meaning the username 'ftp' cannot log in to the FTP server without a password stored in the password database. This feature helps prevent users who lack the background knowledge of how this special username 'ftp' conventionally works in FTP from mistakenly creating an account with the username 'ftp,' assuming it behaves like other usernames that require a password to log in to the FTP server, which it does not. Differential Revision: https://reviews.freebsd.org/D46547
* ftpd.8: Fix manual syntaxTom Hukins2025-05-041-5/+4
| | | | | | | | This does not change the manual's content, but improves its syntax as suggested by `mandoc -T lint`. Reviewed by: imp, emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1690
* Remove "All Rights Reserved" from FreeBSD Foundation copyrightsEd Maste2024-07-302-2/+0
| | | | | | | These ones were unambiguous cases where the Foundation was the only listed copyright holder. Sponsored by: The FreeBSD Foundation
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* ftpd: stop using -g flag for /bin/lsAllan Jude2024-05-213-4/+4
| | | | | | | | | | | | | | | In 3bfbb521 the behaviour of ls was changed such that -g was no longer a noop for compatibility with BSD 4.3, but instead changed the output of long mode to exclude the owner of the file and display only the group. Update how FTPd invokes ls to restore the previous behaviour Reported-by: Andrew Fengler <andrew.fengler@scaleengine.com> Reviewed-by: jrtc27, des, imp MFC after: 3 days Sponsored-by: ScaleEngine Inc. Fixes: 3bfbb521fef5 ("ls: Improve POSIX compatibility for -g and -n.")
* libexec: Automated cleanup of cdefs and other formattingWarner Losh2023-11-273-12/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-12/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* libexec: Remove ancient SCCS tags.Warner Losh2023-11-278-21/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Track upstream project rename in contrib/blocklistdEd Maste2023-11-031-1/+1
| | | | | | | | Upstream is now https://github.com/zoulasc/blocklist/. Rename the contrib directory and update Makefiles to match, in advance of the next vendor branch update. Sponsored by: The FreeBSD Foundation
* ftpd: correct deprecation notice markupEd Maste2023-09-131-2/+2
| | | | | | | | Also bump .Dd for the original change. Reported by: karels Fixes: 98b98ec1bc7e ("ftpd: add deprecation notice") Sponsored by: The FreeBSD Foundation
* ftpd: add deprecation noticeEd Maste2023-09-091-0/+10
| | | | | | Approved by: gordon Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26447
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-164-8/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-163-3/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* Put OPIE to rest.Dag-Erling Smørgrav2022-10-024-45/+5
| | | | Differential Revision: https://reviews.freebsd.org/D36592
* ftp: Use /var/spool/ftp as ftp's home consistentlyMateusz Piotrowski2022-06-281-2/+5
| | | | | | | The home directory of the ftp user is /var/spool/ftp according to hier(7). Update the manual page of ftpd(8) to reflect that. MFC after: 2 weeks
* ftpd(8): do not refer to now unused libxo(3)Eugene Grosbein2022-06-102-2/+1
| | | | | | | | | | In 2018, the commit r328100 (0fdf7fa846b1a1b1679e86812a1b08b8cb623604) removed libxo(3) support from ls(1), so ftpd has no reasons to link with libxo since then. ls(1) does not depend on libxo in both of stable/12 and stable/13. MFC after: 2 weeks
* pkgbase: Create a FreeBSD-ftpd packageEmmanuel Vadot2021-12-211-0/+2
| | | | | | | | And put ftpd into it. MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33453
* ftpd: delete dead codeAlan Somers2021-07-272-52/+0
| | | | | | | | | | Delete code killed by SVN r13139 in 1996. Little chance that it would still compile today. PR: 257317 Reported by: Alan Shearer <sakison@gmail.com> MFC after: 2 weeks Sponsored by: Axcient
* ftpd: Add missing braces around a statfd checkMark Johnston2020-09-221-1/+2
| | | | | | | | | | This was harmless but looked incorrect. No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=366003
* ftpd: Exit during authentication if an error occurs after chroot().Mark Johnston2020-09-151-4/+11
| | | | | | | | admbug: 969 Security: CVE-2020-7468 Notes: svn path=/head/; revision=365771
* Fix build with recent byacc.Jung-uk Kim2020-06-241-0/+2
| | | | Notes: svn path=/head/; revision=362569
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-3/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* Add Makefile.depend.optionsSimon J. Gerraty2019-12-111-0/+6
| | | | | | | | | | | | | | | | | | | | Leaf directories that have dependencies impacted by options need a Makefile.depend.options file to avoid churn in Makefile.depend DIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etc can be set in local.dirdeps-options.mk which can add to those set in Makefile.depend.options See share/mk/dirdeps-options.mk Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22469 Notes: svn path=/head/; revision=355616
* Move ftpusers to libexec/ftpd/Brad Davis2018-08-212-0/+30
| | | | | | | | | | | Thsi helps with pkgbase by switching to CONFS so that ftpusers will be properly tagged as a config file. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16787 Notes: svn path=/head/; revision=338147
* Use strlcpy().Xin LI2017-12-051-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=326562
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-206-5/+17
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* ftpd(8): fix user context handling.Eugene Grosbein2017-10-061-4/+17
| | | | | | | | | | | | | | | | | | Apply authenticated user context after update of wtmp(5) at start of session, so that ftpd process is not killed by kernel with SIGXFSZ when user has "filesize" limit lower than size of system wtmp file. Same applies to session finalization: revert to super-user context before update of wtmp. If ftpd hits limit while writing a file at user request, do not get killed with SIGXFSZ instantly but apparently ignore the signal, process error and report it to the user, and continue with the session. PR: 143570 Approved by: avg (mentor), mav (mentor) MFC after: 1 week Notes: svn path=/head/; revision=324364
* Improve blacklist support before upgrading libblacklistKurt Lidl2017-05-062-3/+5
| | | | | | | | | | | | | | | The locally declared enum of blacklistd actions needs to be hidden when the soon to be committed changes to libblacklist are brought into the tree. Fix the type of the "msg" parameter to match the library. There should be no functional changes. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=317862
* libexec: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-3/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314653
* Fix build when WITHOUT_BLACKLIST=yes is specifiedKurt Lidl2016-11-121-3/+0
| | | | | | | | | | | PR: 214409 Submitted by: matthew Reported by: matteo MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=308567
* Revisit blacklistd support in ftpdKurt Lidl2016-11-014-15/+50
| | | | | | | | | | | | | | | | Enhance blacklistd support to not log anything by default, unless blacklistd support is enabled on the command line. Document new flag in man page, cleanup patches to be less intrusive in code. Reported by: Rick Adams Reviewed by: cem, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8374 Notes: svn path=/head/; revision=308175
* DIRDEPS_BUILD: Update dependenciesBryan Drewery2016-06-141-0/+2
| | | | | | | | Approved by: re (gjb) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301891
* Update blacklist support in ftpd to clarify fd usageKurt Lidl2016-06-062-13/+11
| | | | | | | | | | | | | | | | The ftp daemon dups the control socket to stdin and uses that fd throughout the code. Clarify this usage slightly by changing from explicit use of "0" for the fd to a variable, to make it clear what the zero represents in the non-blacklist code. Make the blacklist_notify routine use STDIN_FILENO so as to have less of a "magic number" feel to the code. Reviewed by: cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6716 Notes: svn path=/head/; revision=301517
* Add blacklist support to ftpdKurt Lidl2016-06-034-0/+109
| | | | | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6703 Notes: svn path=/head/; revision=301241
* Declare line[] in the outermost scope of retrieve() instead ofDon Lewis2016-05-131-3/+3
| | | | | | | | | | | declaring it in an inner scope and then using it via a pointer in the outer scope. Reported by: Coverity CID: 605895 Notes: svn path=/head/; revision=299585
* Rename getline with get_line to avoid collision with getline(3)Baptiste Daroussin2016-05-103-5/+5
| | | | | | | | When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard Notes: svn path=/head/; revision=299356
* libexec: minor spelling fixes in comments.Pedro F. Giffuni2016-05-012-2/+2
| | | | | | | No functional change. Notes: svn path=/head/; revision=298897
* ftpd: replace malloc + memset 0 with calloc.Pedro F. Giffuni2016-04-181-3/+2
| | | | | | | | It is faster and usually safer. Use NULL instead of zero for the pointer. Notes: svn path=/head/; revision=298211
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-2/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-241-1/+1
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Needs libxoSimon J. Gerraty2015-06-141-0/+1
| | | | Notes: svn path=/head/; revision=284371