ftpd: new option -a ANON_USER to allow anonymous logins
authorAndrey Mozzhuhin <amozzhuhin@yandex.ru>
Tue, 24 Jan 2017 22:02:04 +0000 (23:02 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jan 2017 22:04:25 +0000 (23:04 +0100)
commit2181fb4af8680730e0157310ffeeb3a35768beb0
tree916974edafb3290da2c90fb38b9f39dd56cdfb2a
parentdff9fefd500401ad7821c9890fee4c3fb88f64eb
ftpd: new option -a ANON_USER to allow anonymous logins

Anonymous ftpd login is useful even when ftpd authentication feature
is enabled. Anonymous logins provide simple password-less connection
for FTP clients.

To allow password-less connection user command line option '-a USER' is
added. This option specifies the system user to use when
'anonymous' username is given in USER command. No password is required
in this case.

function                                             old     new   delta
ftpd_main                                           2164    2232     +68
packed_usage                                       31015   31046     +31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 99/0)               Total: 99 bytes

Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ftpd.c