summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-07-26 17:09:39 +0800
committerBernard Xiong <[email protected]>2018-07-26 17:09:39 +0800
commitb9255c20d2224b3bf55b6db2126ceabb54a44e6a (patch)
tree3c02e634b9e103d6af1959e722592f4287b93f4c /components
parent7323916c6c00aac6b45fbc75267cc73daa4985ce (diff)
[finsh] Remove chdir feature in msh
Diffstat (limited to 'components')
-rw-r--r--components/finsh/msh.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index 9b07883a41..b036e2c02e 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -368,7 +368,6 @@ int msh_exec(char *cmd, rt_size_t length)
/* Exec sequence:
* 1. built-in command
* 2. module(if enabled)
- * 3. chdir to the directry(if possible)
*/
if (_msh_exec_cmd(cmd, length, &cmd_ret) == 0)
{
@@ -386,12 +385,6 @@ int msh_exec(char *cmd, rt_size_t length)
{
return 0;
}
-
- /* change to this directory */
- if (chdir(cmd) == 0)
- {
- return 0;
- }
#endif
#if defined(RT_USING_LWP) && defined(RT_USING_DFS)