mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08: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:
committed by
Gregory Nutt
parent
eb015e10d5
commit
010d5da4e6
+1
-1
@@ -140,7 +140,7 @@ int fs_dupfd(int fd, int minfd)
|
||||
goto errout;
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ret;
|
||||
|
||||
errout:
|
||||
set_errno(-ret);
|
||||
|
||||
Reference in New Issue
Block a user