fs: fix wrong config for FS_SHMFS

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
xuxingliang 2024-09-05 16:22:11 +08:00 committed by Xiang Xiao
parent d473fa24a7
commit 3d31e84749
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf, int resolve)
if (INODE_IS_SHM(inode))
{
buf->st_mode = S_IFSHM;
buf->st_mode |= S_IRUSR | S_IWUSR;
buf->st_size = inode->i_size;
}
else