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 3b7d2464f59 fs/unionfs: Report the search permission for the root
directory.
3b7d2464f59 is described below
commit 3b7d2464f5915be748fe7f686213bdc5934141d0
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Oct 17 23:57:59 2026 +0200
fs/unionfs: Report the search permission for the root directory.
The root directory of a union file system was reported as r--r--r--.
On a directory the execute bit is the search permission.
Report it as r-xr-xr-x.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
fs/unionfs/fs_unionfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/unionfs/fs_unionfs.c b/fs/unionfs/fs_unionfs.c
index 06b86cd32a5..d6072bd78f3 100644
--- a/fs/unionfs/fs_unionfs.c
+++ b/fs/unionfs/fs_unionfs.c
@@ -2462,7 +2462,8 @@ static int unionfs_stat(FAR struct inode *mountpt, FAR
const char *relpath,
/* Claim that this is a read-only directory */
- buf->st_mode = S_IFDIR | S_IROTH | S_IRGRP | S_IRUSR;
+ buf->st_mode = S_IFDIR | S_IROTH | S_IRGRP | S_IRUSR | S_IXOTH |
+ S_IXGRP | S_IXUSR;
/* Check if the user is stat'ing some "fake" node between the unionfs
* root and the file system 1 root directory.