未验证 提交 813919b6 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1146 from parai/patch-2

[dfs] fix the issue of stat "/.." of lwext4
......@@ -404,6 +404,13 @@ up_one:
if ((dst != fullpath) && (*dst == '/'))
*dst = '\0';
/* final check fullpath is not empty, for the special path of lwext "/.." */
if ('\0' == fullpath[0])
{
fullpath[0] = '/';
fullpath[1] = '\0';
}
return fullpath;
}
RTM_EXPORT(dfs_normalize_path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册