mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user