Skip to content

Commit

Permalink
fs: fix wrong config for FS_SHMFS
Browse files Browse the repository at this point in the history
Signed-off-by: xuxingliang <[email protected]>
  • Loading branch information
XuNeo authored and xiaoxiang781216 committed Oct 9, 2024
1 parent d473fa2 commit 3d31e84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/vfs/fs_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d31e84

Please sign in to comment.