jerpelea opened a new pull request, #21235:
URL: https://github.com/apache/nuttx/pull/21235

   ## Summary
   
   open() of a directory gives the file a stand-in inode, g_dir_inode, with the 
directory operations.  file_fstat() did not know it and returned inode_stat() 
of that stand-in: a directory, but with st_ino 0 and none of the real 
directory's attributes, on every file system. Programs that walk directories 
with openat() and fstat(), for example with fts, compare st_dev and st_ino with 
those from stat() to detect loops and changed directories, and failed.
   
   Stat the directory by the path that the open directory keeps.
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
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]

Reply via email to