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:
David Sidrane
2018-12-10 13:25:52 -06:00
committed by Gregory Nutt
parent eb015e10d5
commit 010d5da4e6
+1 -1
View File
@@ -140,7 +140,7 @@ int fs_dupfd(int fd, int minfd)
goto errout;
}
return OK;
return ret;
errout:
set_errno(-ret);