mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nshlib: Reuse nsh_session logic in nsh_telnetmain
to avoid the code duplication Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Alan Carvalho de Assis

parent
8e460e7e19
commit
75455d3788
@@ -292,7 +292,7 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
||||
|
||||
/* Execute the session */
|
||||
|
||||
nsh_session(pstate, true, argc, argv);
|
||||
nsh_session(pstate, NSH_LOGIN_LOCAL, argc, argv);
|
||||
|
||||
/* Switch to /dev/null because we probably no longer have a
|
||||
* valid console device.
|
||||
|
Reference in New Issue
Block a user