raiden00pl opened a new pull request, #21880: URL: https://github.com/apache/nuttx/pull/21880
## Summary v9fs_vfs_lstat() did not set st_dev, so lstat() returned whatever the caller's buffer held there and differed from stat() of the same file. Clear the buffer first, as v9fs_vfs_stat() does. POSIX lstat(): "The lstat() function shall be equivalent to stat(), except when path refers to a symbolic link." ## Impact lstat() on v9fs returns defined st_dev (only with CONFIG_FS_LINKS). ## Testing qemu-armv8a with a 9P share: lstat() and stat() of the same file return the same st_dev. -- 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]
