summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
Commit message (Collapse)AuthorAgeFilesLines
* MFC r317862:lidl2017-05-122-3/+5
| | | | | | | | | | | | Improve blacklist support before upgrading libblacklist 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. Sponsored by: The FreeBSD Foundation
* MFC r308567: Fix build when WITHOUT_BLACKLIST=yes is specifiedlidl2016-11-151-3/+0
| | | | Sponsored by: The FreeBSD Foundation
* MFC r308175: Revisit blacklistd support in ftpdlidl2016-11-084-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. Sponsored by: The FreeBSD Foundation
* DIRDEPS_BUILD: Update dependenciesbdrewery2016-06-141-0/+2
| | | | | Approved by: re (gjb) Sponsored by: EMC / Isilon Storage Division
* Update blacklist support in ftpd to clarify fd usagelidl2016-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
* Add blacklist support to ftpdlidl2016-06-034-0/+109
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6703
* Declare line[] in the outermost scope of retrieve() instead oftruckman2016-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
* Rename getline with get_line to avoid collision with getline(3)bapt2016-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
* libexec: minor spelling fixes in comments.pfg2016-05-012-2/+2
| | | | No functional change.
* ftpd: replace malloc + memset 0 with calloc.pfg2016-04-181-3/+2
| | | | | It is faster and usually safer. Use NULL instead of zero for the pointer.
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-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
* Upgrade libxo to 0.4.5.marcel2015-08-241-1/+1
| | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo
* Needs libxosjg2015-06-141-0/+1
|
* Add META_MODE support.sjg2015-06-131-0/+28
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-8/+5
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-287-35/+9
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Updated/new Makefile.dependsjg2012-11-081-1/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-041-1/+1
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+29
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Fix build after converting ls(1) to use libxo(3).marcel2015-06-101-1/+1
| |_|_|_|/ |/| | | |
* | | | | Convert to LIBADDbapt2014-11-251-8/+4
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|/ |/| | | | | | | | from the latter.
* | | Remove the 3rd clause ("advertising clause") of the BSD license asbrueffer2014-02-177-35/+7
| | | | | | | | | | | | | | | | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week
* | | In sgetpwnam(), save and free pw_class like all other char membersbrueffer2014-02-141-0/+2
| |/ |/| | | | | | | | | | | | | | | of struct passwd. This fixes spurious "login_getclass: unknown class" errors. PR: 186439 Submitted by: UEMURA Tetsuya <t_uemura at macome.co.jp> MFC after: 1 week
* | Bump date missed in r202756eadler2012-09-141-1/+1
|/ | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Spelling fixes for libexec/uqs2012-01-071-1/+1
|
* Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]cperciva2011-12-232-0/+4
| | | | | | | | | | | | | | | | | | | | Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07] Fix a buffer overflow in telnetd. [11:08] Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09] Add sanity checking of service names in pam_start. [11:10] Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam
* Add LOGIN_SETCPUMASK and LOGIN_SETLOGINCLASS to the setusercontext(3)trasz2011-06-221-6/+5
| | | | calls in ftpd(8).
* Make format string a string literal. (Discovered by clang.)emaste2011-01-041-1/+1
| | | | MFC After: 1 week
* Handle failure from ftpd_popen in statfilecmd().emaste2011-01-041-0/+4
| | | | | Reviewed by: attilio MFC after: 1 week
* expand checkuser() to support the propagation of error codes back tocsjp2011-01-031-8/+27
| | | | | | | | | | | the caller. Currently, checkuser() does not differentiate between the failure to open the file and the absence of a user in the file. Check to see if there was an error opening the file. If there are any errors, terminate the connection. Currently, the only exception to this rule is ENOENT, since there is nothing that says the /etc/ftpuser and /etc/ftpchroot has to exist. MFC after: 3 weeks
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-2/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Check that gl_pathc is bigger than zero before derefencing gl_pathv.delphij2010-03-251-1/+2
| | | | | | | | | When gl_pathc == 0, the content of gl_pathv is undefined. PR: bin/144761 Submitted by: David BERARD <contact davidberard fr> Obtained from: OpenBSD MFC after: 1 week
* Set ut_line to "ftpd" for ftpd.ed2010-02-091-0/+1
| | | | | | | | This makes it a little easier to figure out which application was responsible for this log entry. Ideally we should add an ut_process or something similar. Suggested by: Vincent Poy <vincepoy gmail com>
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-2/+1
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Really disable wtmp logging when chrooting.ed2010-01-182-6/+9
| | | | | | | | Also perform a small cleanup to ftpd_logwtmp(). Just use a NULL parameter for the username to indicate a logout, instead of an empty string. Reported by: Alexey Shuvaev <shuvaev physik uni-wuerzburg de>
* Port ftpd to utmpx.ed2010-01-132-52/+38
| | | | | | | | Unfortunately I have to partially wreck its functionality, though. ftpd used to keep a file descriptor to the wtmp, which allowed it to work from within a chroot. The current utmpx implementation doesn't offer a way to do this. Maybe we can address this in the future, if it turns out to be a real issue.
* Move variable externs into extern.h so they are checked against the definitions.obrien2009-04-073-30/+29
|
* o Fix typo: indentical -> identical.maxim2009-01-301-1/+1
| | | | | | PR: docs/131149 Submitted by: Patrick Oonk MFC after: 1 week
* Prevent cross-site forgery attacks on ftpd(8) due to splittingcperciva2008-12-233-8/+29
| | | | | | | | | | | | | long commands into multiple requests. [08:12] Avoid calling uninitialized function pointers in protocol switch code. [08:13] Merry Christmas everybody... Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-08:12.ftpd, FreeBSD-SA-08:13.protosw
* Remove references to S/Key and list OPIE.trhodes2007-04-201-8/+7
|
* Reword the description of the UTF8 option (-8) so I can swearyar2007-04-191-14/+13
| | | | | | to myself that I understand it. Bump document date.
* Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).yar2007-04-183-3/+45
| | | | | | | | | | | | | | The support for RFC 2640 (UTF8) is optional and rudimentary. The server just advertises its capability to handle UTF-8 file names and relies on its own 8-bit cleanness, as well as on the backward compatibility of UTF-8 with ASCII. So uploaded files will have UTF-8 names, but the initial server contents should be prepared in UTF-8 by hand, no on-the-fly conversion of file names will be done. PR: bin/111714 Submitted by: Zhang Weiwu <see email in the PR> MFC after: 1 week
* Let automatic TCP send buffer sizing do its job for ftpd(8): stopyar2007-02-091-9/+1
| | | | | setting the SO_SNDBUF socket option. Using a hard-coded value for it was a poor idea anyway in the face of diverse network conditions.
OpenPOWER on IntegriCloud