diff --git a/fs/inode/fs_inodegetpath.c b/fs/inode/fs_inodegetpath.c index aaeb99bd0e..f3b7b966c1 100644 --- a/fs/inode/fs_inodegetpath.c +++ b/fs/inode/fs_inodegetpath.c @@ -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, "/"); }