Merge pull request #1670 from RT-Thread/fix_chdir

[finsh] Remove chdir feature in msh
This commit is contained in:
Bernard Xiong 2018-07-28 08:02:35 +08:00 committed by GitHub
commit cfce8815fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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)