summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
AgeCommit message (Expand)AuthorFilesLines
2020-01-15Simplify globbing of ftpd(8)s list and nlst commands.jan1-3/+3
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.deraadt1-2/+2
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-56/+56
2019-05-08rm dead code and simplify ftpd_popen. this code has only calledtedu1-18/+11
2018-12-11Flip snprintf(3) error check to align it with the man page example.bluhm1-2/+2
2018-12-11Convert some variables with non-negative values to unsigned typebluhm1-6/+7
2016-09-03Use a single "opt" variable for all setsockopt calls in getdatasock().jca1-12/+13
2016-09-03Set "lowdelay" and "throughput" Traffic Class on command & data IPv6 sockets.jca1-7/+21
2016-08-31Don't attempt to support IPv4-mapped IPv6 addresses.jca1-37/+5
2016-08-30remove ifdef for all the features we have.tedu1-16/+1
2016-08-26trim down some NBBY references. 8 bits ought to be enough for anyone.tedu1-6/+2
2016-08-14Convert %q to %ll with long long casts for printf()guenther1-23/+23
2016-07-04Use fstatat() instead of crafting a filename to use with stat()guenther1-14/+16
2016-05-04Kill #ifdef INET6 occurrences in userland.jca1-5/+1
2016-04-25prefer setres{u,g}id() rather than manipulating both real and effectivederaadt1-3/+3
2016-04-06compare pointer to NULL instead of 0semarie1-7/+8
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw1-2/+2
2015-12-12Remove NULL-checks before free(). ok tb@mmcc1-11/+6
2015-11-16don't need to ifdef setproctitletedu1-9/+1
2015-10-25No longer create /var/run/ftpd.pid in daemon mode; OK jung@ jca@millert1-5/+1
2015-10-04fix custom popen to return pid to caller instead of tracking in a gianttedu1-10/+14
2015-09-01test pointers with NULL not '\0'jsg1-4/+4
2015-01-19CMASK went out of scope with the recent <sys/param.h> removal. But ohderaadt1-6/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-18/+18
2014-10-25Remove unnecessary netinet/in_systm.h include.lteo1-2/+1
2014-08-25Delete secret or secret-derived data with explicit_bzero.doug1-2/+2
2014-03-24remove tcpwrappers support. ok deraadttedu1-49/+1
2014-03-17args! fix argstr. from LEVAI Daniel.sthen1-2/+2
2014-03-17typo, spotted by okan@sthen1-2/+2
2014-03-17Add an option to disallow ftp access to accounts with uid below a certainsthen1-2/+22
2014-01-08If the file size is zero, there's nothing to transmit so avoid spammingjca1-1/+7
2013-08-22Correct format string mismatches turned up by -Wformat=2guenther1-3/+3
2013-07-26Make sure tmpline[] is always NUL terminated, to avoid possibleguenther1-2/+2
2012-12-04remove some unnecessary sys/param.h inclusionsderaadt1-2/+1
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()fgsch1-2/+2
2011-12-14Add a new '-W' option to prevent saving login records to /var/run/wtmp.ajacoutot1-6/+19
2011-02-09Set SO_KEEPALIVE on sockets. OK miod@. Also tested by landry@millert1-3/+18
2010-08-27In revision 1.14 of ftpd.c the ident variable was removed from its only meaningful usage when a snprintf call was removed, rendering ident useless. Time to remove remaining code.lum1-9/+1
2010-08-01Properly reset states when a login phase is interrupted by another one.tobias1-1/+2
2010-07-30Don't set "success" flags before error checks.ray1-7/+9
2010-06-18Prevent a segmentation fault on ftpd_popen error (memory, file descriptor,tobias1-1/+5
2010-06-13Adjust FTP reply codes (in error conditions) to conform to RFC 959.tobias1-4/+4
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-16/+1
2009-04-20When receiving a new connection, log the remote IP numberschwarze1-4/+9
2008-09-30Always say "User %s access denied", in all cases, to avoid some stupidderaadt1-6/+3
2008-09-12Don't split large commands into multiple commands on a 512-bytemoritz1-3/+8
2008-06-30Include file order must be "monitor.h" before "extern.h" otherwise enumragge1-3/+3
2008-04-13Use arc4random_buf() when requesting more than a single word of outputdjm1-3/+3
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-4/+4
2007-07-31From Gilles Chehade:ray1-25/+32