ftpd: add idle and absolute timeouts. This is a security issue,

otherwise ftpd may end up hanging indefinitely.

function                                             old     new   delta
timeout_handler                                        -     110    +110
ftpd_main                                           2019    2115     +96
packed_usage                                       25662   25685     +23
handle_upload_common                                 306     322     +16
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 245/0)             Total: 245 bytes
This commit is contained in:
Denis Vlasenko
2009-03-16 16:19:53 +00:00
parent f2160b6a09
commit 20c8216897
2 changed files with 52 additions and 21 deletions

View File

@@ -1281,7 +1281,7 @@
"\n -f Force file system check" \
#define ftpd_trivial_usage \
"[-wvS] [DIR]"
"[-wvS] [-t N] [-T N] [DIR]"
#define ftpd_full_usage "\n\n" \
"FTP server\n" \
"\n" \
@@ -1294,6 +1294,7 @@
"\n -w Allow upload" \
"\n -v Log to stderr" \
"\n -S Log to syslog" \
"\n -t,-T Idle and absolute timeouts" \
"\n DIR Change root to this directory" \
#define ftpget_trivial_usage \