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 a8717c6453
commit a26051e7bc

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