casaroli opened a new pull request, #20758: URL: https://github.com/apache/nuttx/pull/20758
## Summary Without `CONFIG_PSEUDOFS_ATTRIBUTES`, `stat()` reported the directories of the pseudo file system without the search bit, and the files of `CONFIG_PSEUDOFS_FILE` without the execute bit. A file in the pseudo file system can be a program, as in tmpfs. This PR reports the execute bit for directories and for pseudo files. Drivers do not change. With `CONFIG_PSEUDOFS_ATTRIBUTES`, the stored mode is used as before. ## Impact Only the mode that `stat()` reports changes, and only without `CONFIG_PSEUDOFS_ATTRIBUTES`. ## Testing A test on `qemu-armv8a:nsh` (QEMU 11 with HVF on an Apple M4) with FAT, `mkfatfs`, `mkrd` and `CONFIG_PSEUDOFS_FILE`: a FAT RAM disk with a file and a directory, a pseudo file, then `ls -l` of `/fat`, `/`, `/proc` and the pseudo file, on master and with this PR. | Path | master | this PR | |---|---|---| | `/dev` | `dr--r--r--` | `dr-xr-xr-x` | | a pseudo file | `-rw-rw-rw-` | `-rwxrwxrwx` | `tools/checkpatch.sh -c -u -m -g` passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
