fs: fix wrong config for FS_SHMFS
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
a8717c6453
commit
a26051e7bc
@ -284,6 +284,7 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf, int resolve)
|
|||||||
if (INODE_IS_SHM(inode))
|
if (INODE_IS_SHM(inode))
|
||||||
{
|
{
|
||||||
buf->st_mode = S_IFSHM;
|
buf->st_mode = S_IFSHM;
|
||||||
|
buf->st_mode |= S_IRUSR | S_IWUSR;
|
||||||
buf->st_size = inode->i_size;
|
buf->st_size = inode->i_size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user