From a26051e7bcc9a71af6a2ba61722ceb8e5b855f48 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 200e629dcf..b647b30b71 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