nuttx/fs/smartfs
Abhishek Mishra c7cbee7a33 fs/smartfs: mask reserved flags from stat mode.
SMARTFS_DIRENT_RESERVED uses bits that overlap S_ISUID, S_ISGID, and S_ISVTX. smartfs_stat_common() currently clears only S_IFMT, allowing reserved directory-entry flags to appear in st_mode and ls output as setuid and setgid bits. Preserve only SMARTFS_DIRENT_MODE when constructing st_mode.

Assisted-by: GPT-5.6 Sol
Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
2026-10-07 13:28:02 -03:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
smartfs.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
smartfs_procfs.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
smartfs_smart.c fs/smartfs: mask reserved flags from stat mode. 2026-10-07 13:28:02 -03:00
smartfs_utils.c fs: fix pre-existing nxstyle issues in touched files 2026-08-28 23:07:24 +08:00