fs: add "/" suffix for mountpoint node when using inode_getpath
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2a434fe1fa
commit
120fa93d7f
@ -63,7 +63,7 @@ int inode_getpath(FAR struct inode *node, FAR char *path)
|
||||
}
|
||||
|
||||
strcat(path, node->i_name);
|
||||
if (node->i_child)
|
||||
if (node->i_child || INODE_IS_MOUNTPT(node))
|
||||
{
|
||||
strcat(path, "/");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user