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
@ -140,7 +140,7 @@ int fs_dupfd(int fd, int minfd)
|
|||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return ret;
|
||||||
|
|
||||||
errout:
|
errout:
|
||||||
set_errno(-ret);
|
set_errno(-ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user