fs: fix wrong config for FS_SHMFS
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
d473fa24a7
commit
3d31e84749
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue