mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
fs: add "/" suffix for mountpoint node when using inode_getpath
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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, "/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user