mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
dup: behave like fd_duplicate expects
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
syscallret syscall_dup(int oldfd){
|
||||
syscallret retv;
|
||||
retv.errno = fd_duplicate(&arch_getcls()->thread->proc->fdtable, oldfd, ~0, 1, &retv.ret);
|
||||
retv.errno = fd_duplicate(&arch_getcls()->thread->proc->fdtable, oldfd, 0, 1, &retv.ret);
|
||||
return retv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user