mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
hostfs_open:return errno from host
Summary: Returns the error code returned directly by the host to avoid conversion to EBADF Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
+1
-1
@@ -296,7 +296,7 @@ static int hostfs_open(FAR struct file *filep, FAR const char *relpath,
|
|||||||
{
|
{
|
||||||
/* Error opening file */
|
/* Error opening file */
|
||||||
|
|
||||||
ret = -EBADF;
|
ret = hf->fd;
|
||||||
goto errout_with_buffer;
|
goto errout_with_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user