nsh_stdsession() cannot use the same login logic as nsh_session(); Also put telnet login in a separate file for symmetry

This commit is contained in:
Gregory Nutt
2016-01-20 15:22:02 -06:00
parent 93d9d5e4ca
commit 07cf99130c
6 changed files with 497 additions and 229 deletions

View File

@@ -87,7 +87,7 @@ int nsh_session(FAR struct console_stdio_s *pstate)
#ifdef CONFIG_NSH_CONSOLE_LOGIN
/* Login User and Password Check */
if (nsh_login(pstate) != OK)
if (nsh_stdlogin(pstate) != OK)
{
nsh_exit(vtbl, 1);
return -1; /* nsh_exit does not return */
@@ -109,6 +109,7 @@ int nsh_session(FAR struct console_stdio_s *pstate)
/* Output the fixed message of the day */
printf("%s\n", g_nshmotd);
# endif
#endif