From 3d31e8474903006feda079f27fe8280757ef8823 Mon Sep 17 00:00:00 2001 From: xuxingliang Date: Thu, 5 Sep 2024 16:22:11 +0800 Subject: [PATCH] fs: fix wrong config for FS_SHMFS Signed-off-by: xuxingliang --- fs/vfs/fs_stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/vfs/fs_stat.c b/fs/vfs/fs_stat.c index 200e629dcf7c1..b647b30b7171c 100644 --- a/fs/vfs/fs_stat.c +++ b/fs/vfs/fs_stat.c @@ -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