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

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 93a9120af52 fs/xipfs: Report execute permission for files.
93a9120af52 is described below

commit 93a9120af52360e25e5b485afb7c4b43ccea1302
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Oct 17 23:57:56 2026 +0200

    fs/xipfs: Report execute permission for files.
    
    xipfs keeps programs that run in place, but xipfs_stat() and
    xipfs_fstat() reported the files as 0444, with no execute bit.
    
    Report the files as 0555.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 fs/xipfs/xipfs_vfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/xipfs/xipfs_vfs.c b/fs/xipfs/xipfs_vfs.c
index 33291a2082c..9378cc3cfdb 100644
--- a/fs/xipfs/xipfs_vfs.c
+++ b/fs/xipfs/xipfs_vfs.c
@@ -1339,7 +1339,7 @@ static int xipfs_fstat(FAR const struct file *filep, FAR 
struct stat *buf)
     }
 
   memset(buf, 0, sizeof(struct stat));
-  buf->st_mode    = S_IFREG | 0444;
+  buf->st_mode    = S_IFREG | 0555;
   buf->st_size    = xf->ext->size;
   buf->st_blksize = fs->geo.erasesize;
   buf->st_blocks  = xf->ext->nblocks;
@@ -1883,7 +1883,7 @@ static int xipfs_stat(FAR struct inode *mountpt, FAR 
const char *relpath,
       return OK;
     }
 
-  buf->st_mode    = S_IFREG | 0444;
+  buf->st_mode    = S_IFREG | 0555;
   buf->st_size    = ext->size;
   buf->st_blksize = fs->geo.erasesize;
   buf->st_blocks  = ext->nblocks;

Reply via email to