提交 de82bf89 编写于 作者: O openharmony_ci 提交者: Gitee

!615 shell命令中rm -r指令尝试删除/dev下节点系统出错

Merge pull request !615 from 高荣鑫/OpenHarmony_1.0.1_release
......@@ -838,6 +838,10 @@ static int os_shell_cmd_do_rmdir(const char *pathname)
return remove(pathname);
}
d = opendir(pathname);
if (d == NULL)
{
return -1;
}
while (1)
{
dirent = readdir(d);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册