From cfae8d45a94832c8eae15ccad2012c37ed2027d7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 5 Feb 2012 19:32:42 +0000 Subject: FTP server is marginally functional git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4372 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/ftpd/ftpd_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/examples/ftpd') diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c index 1f43e317c..c5c23256d 100755 --- a/apps/examples/ftpd/ftpd_main.c +++ b/apps/examples/ftpd/ftpd_main.c @@ -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); -- cgit v1.2.3