summaryrefslogtreecommitdiff
path: root/libexec/ftpd
AgeCommit message (Collapse)Author
2003-12-10Use sysconf(_SC_LOGIN_NAME_MAX) to determine the length of loginlukem
names, rather than assuming LOGIN_NAME_MAX. Based on patch from Garrett Wollman via David O'Brien (both at FreeBSD.org)
2003-10-13Move Jason Downs's code from a 4-clause to a 3-clause licence byagc
removing the advertising clause. Diffs provided in PR 22410 by Joel Baker, confirmed to the board by Jason Downs. With additional thanks to Jason Thorpe.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-07-26netbsd.org->NetBSD.orgsalo
2003-07-23split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.seitojun
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-06-30Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx filetacha
open while a session. Close bin/21692 by bqt@Krille.Update.UU.SE.
2003-06-27Add Ns.wiz
2003-03-31behaviour->behaviorperry
I actually really like the UK spelling on this, but consistency among our man pages is also a virtue.
2003-03-03Don't declare "yylex()" static; AFAICT it shouldn't be, and it causeslukem
build problems with the output of some versions of yacc.
2003-03-03Fix typos accidentally introduced in rev 1.70 as part of the largelukem
number support. (NetBSD yacc didn't barf on these, although Solaris and HP/UX's did...)
2003-02-28it's actually 2003 ...lukem
2003-02-26Add '-L xferlogfile', to write xferlog entries there rather than syslog them.lukem
Based on work from Dmitry Sivachenko.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2003-02-24Fix uninitialized variable "notglob" in send_file_list() that was causingerh
transfers to fail due to an abort in free().
2003-02-24Fix uninitialized variable in mlsname()erh
2003-02-24use LLT and STRTOLL() instead of off_t and strtoull() for parsing thelukem
"larger than int" arguments from commands. improves portability.
2003-02-23rename local copies of login(), logout() and logwtmp() tolukem
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively. (makes utmp support much easier in tnftpd). per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who forwarded patch from Michael Ranner <mranner@inode.at>.
2003-02-23crank version for:lukem
Stop ftpd changing inetd's 'logname' Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time NGROUPS_MAX.
2003-02-19gidlist is nolonger an array.matt
2003-02-19Stop ftpd changing inetd's 'logname'dsl
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time NGROUPS_MAX. (approved by christos)
2003-02-04"Utilize" has exactly the same meaning as "use," but it is moreperry
difficult to read and understand. Most manuals of English style therefore say that you should use "use".
2003-01-22Apply DoS fix as described by Crist J. Clark <crist.clark@attbi.com>lukem
on <security@freebsd.org>, and subsequently in FreeBSD's cvs repository as libexec/ftpd/ftpd.c rev 1.133: The FTP daemon was vulnerable to a DoS where an attacker could bind() up port 20 for an extended period of time and thus lock out all other users from establishing PORT data connections. Don't hold on to the bind() while we loop around waiting to see if we can make our connection. Bump version to 20030122.
2003-01-22Fixes from Dmitry Sivachenko <demon@freebsd.org>:lukem
- always set "curname" to something appropriate (even when logging is not in effect). - fix usage for "PORT" command
2003-01-16Rename `sigset' locals to avoid symbol shadowing warning.kleink
2003-01-08ftpd was unable to service the pwd request once you entered a directorymanu
without search permission. This confused some ftp clients. We fix this problem by maitaining a cached path when getcwd() does not work. The symbolic links and ../ are resolved in the cached path, and it is finnally checked for accuracy by comparing ./ and the cached path with stat (device and inode comparison). If the comparison fails, pwd fails as it did before, and if the comparison succeeds, the cached path is displayed. If paths are too long, we should just compare ./ with a truncated path and fail, thus making pwd displaying an error as it did before.
2002-12-06Avoid conflict with reserved identifier "log".thorpej
2002-11-29-1 -> \-1.wiz
2002-11-29- convert to using libc's strsuftoll(3)lukem
- use LLT (aka 'long long type') for all numeric class parameters - improve description of various ftpd.conf(5) options - statcmd(): print out: mmapsize readsize writesize sendbufsize sendlowat
2002-11-16audit use of strto* - beware of ERANGE, as well as typecast on result.itojun
2002-10-26tweak reference to melukem
2002-10-26crank version for statfilecmd() 'fix'lukem
2002-10-25Turns out that our implementation of STAT wasn't RFC 959 compliant.itojun
This version is now RFC 959 compliant, using a patch adapted from one sent in by david.leonard@eecs.uq.edu.au openbsd libexec/ftpd/ftpd.c revision 1.69. (see RFC959 page 36)
2002-10-12* enclose unknown command strings inside a pair of 's to clearly mark thedarrenr
text as being the 'whole' part received. * change a HELP reply from 214 to 504 when there is an error looking for help on a command.
2002-10-11"Command not implemented." is 502, not 501 (RFC959, 4.2.1)darrenr
2002-10-07Change arguments of login_utmp(line, name, host) (to be consistentlukem
with logwtmp(3)/logwtmpx(3)), and call correctly. Resolves [bin/18498] by Geoff Wing, who identified that the previous version was being called incorrectly, albiet in a different manner.
2002-10-03Enable GLOB_BRACE for ftpd.conf(5)'s `notify' directive.lukem
Now it's much easier to list multiple files...
2002-10-02especially and interpretation instead of espcially and intrepretation.wiz
By Adrian Mrva.
2002-09-29Begin new sentences on new lines.wiz
Patch from Robert Elz (kre at munnari oz au).
2002-09-18use bsd.own.mk instead of the (obvious typo of) bsd.obj.mklukem
2002-09-13revert previous. wtmp{,x} entries need not be \0-terminated, soitojun
strncpy is more proper.
2002-09-12use strl*, not strn*.itojun
2002-09-12Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.lukem
Allows /etc/ftpchroot to work correctly for usernames > 9 characters. Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in private email.
2002-08-22enable utmpx support. this doesn't work correctly for chrooted ftpd's, butchristos
I am leaving it to luke to fix.
2002-08-20Disable UTMPX support for now, because ftpd might chroot and we needchristos
to keep files open.
2002-08-20utmpx supportchristos
2002-08-19Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/pathlukem
2002-07-02- Change lexer to support numbers > 2^31-1 (stored in an off_t), and allowlukem
RESTart to use the larger numbers. Fix from Maxim Konovalov <maxim@freebsd.org> - Update version - Minor whitespace changes
2002-06-30We really, actually, positively want to apply the ftpd.conf "passive"tv
option to all possible *PSV commands. Some ftp servers are simply not capable of passive connections, hence the option....
2002-06-18Added CONF_LL macro, which understands raw 'strsuftoll' conf variables.aidan
2002-06-15crank copyrightlukem