casaroli commented on code in PR #21613:
URL: https://github.com/apache/nuttx/pull/21613#discussion_r4524416848
##########
fs/hostfs/hostfs.c:
##########
@@ -277,6 +277,20 @@ static int hostfs_open(FAR struct file *filep, FAR const
char *relpath,
goto errout_with_buffer;
}
+ /* A directory: file_vopen() opens it with the directory operations */
+
+ if ((oflags & O_ACCMODE) == O_RDONLY)
+ {
+ struct stat buf;
+
+ ret = host_fstat(hf->fd, &buf);
Review Comment:
Done.
--
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]