From 120fa93d7ff05b3c8cbde987caec66e681b85dc6 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 18 Feb 2022 19:57:38 +0800 Subject: [PATCH] fs: add "/" suffix for mountpoint node when using inode_getpath Signed-off-by: Jiuzhu Dong --- fs/inode/fs_inodegetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "/"); }