Abhishekmishra2808 opened a new pull request, #20446: URL: https://github.com/apache/nuttx/pull/20446
## Summary 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. ## Impact - Fixes incorrect SmartFS `stat()` and `ls -l` mode reporting. - Prevents reserved SmartFS metadata bits from appearing as setuid/setgid bits. - No on-disk format, API, or filesystem compatibility changes. ## Testing ``` mount -t smartfs /dev/smart0 /mnt ls -l /mnt -rw-rw-rw- 13 testfile ``` -- 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]
