mirror of
https://github.com/apache/nuttx.git
synced 2026-08-13 16:35:21 +00:00
fs/vfs: dup() and dup2() were broken some time back. fs_dupfd() was return returing OK on success, not fit the file descriptor of the duplicated fd.
This commit is contained in:
parent
eb015e10d5
commit
010d5da4e6
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ int fs_dupfd(int fd, int minfd)
|
|||
goto errout;
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ret;
|
||||
|
||||
errout:
|
||||
set_errno(-ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue