You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/09 16:30:03 UTC

(nuttx) branch releases/12.7 updated: fs: fix wrong config for FS_SHMFS

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.7 by this push:
     new a26051e7bc fs: fix wrong config for FS_SHMFS
a26051e7bc is described below

commit a26051e7bcc9a71af6a2ba61722ceb8e5b855f48
Author: xuxingliang <xu...@xiaomi.com>
AuthorDate: Thu Sep 5 16:22:11 2024 +0800

    fs: fix wrong config for FS_SHMFS
    
    Signed-off-by: xuxingliang <xu...@xiaomi.com>
---
 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