提交 a7699b0b 编写于 作者: Y yanxiaoyong.yxy 提交者: skylarCai

IssueID:1570: vfs supports rootdir.

[Detail]
none

[Verified Cases]
Build Pass: <none>
Test Pass: <none>
上级 9367a00f
......@@ -157,7 +157,7 @@ vfs_inode_t *vfs_inode_open(const char *path)
}
if (INODE_IS_TYPE(node, VFS_TYPE_FS_DEV)) {
if (strncmp(node->i_name, path, strlen(node->i_name)) == 0) {
if ((strncmp(node->i_name, path, strlen(node->i_name)) == 0) && (strncmp("/dev", path, strlen("/dev")) != 0)) {
#ifdef VFS_CONFIG_ROOTFS
fs_match = true;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册