mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:03:35 +08:00
FTP server is marginally functional
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4372 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -130,11 +130,11 @@ static void ftpd_accounts(FTPD_SESSION handle)
|
||||
{
|
||||
account = &g_ftpdaccounts[i];
|
||||
|
||||
printf("%d. %s account: USER=%s PASSWORD=%s HOME=%s\n",
|
||||
printf("%d. %s account: USER=%s PASSWORD=%s HOME=%s\n", i+1,
|
||||
(account->flags & FTPD_ACCOUNTFLAG_SYSTEM) != 0 ? "Root" : "User",
|
||||
(account->user) ? "(none)" : account->user,
|
||||
(account->password) ? "(none)" : account->password,
|
||||
(account->home) ? "(none)" : account->home);
|
||||
(!account->user) ? "(none)" : account->user,
|
||||
(!account->password) ? "(none)" : account->password,
|
||||
(!account->home) ? "(none)" : account->home);
|
||||
|
||||
ftpd_adduser(handle, account->flags, account->user,
|
||||
account->password, account->home);
|
||||
|
||||
Reference in New Issue
Block a user