Kernel: Fix dup2 return value
We returned the wrong fd number :D
This commit is contained in:
parent
dc454b9a6a
commit
b0bd4ad546
|
|
@ -214,7 +214,7 @@ namespace Kernel
|
||||||
open_file.descriptor_flags = 0;
|
open_file.descriptor_flags = 0;
|
||||||
open_file.inode()->on_clone(open_file.status_flags());
|
open_file.inode()->on_clone(open_file.status_flags());
|
||||||
|
|
||||||
return fildes;
|
return fildes2;
|
||||||
}
|
}
|
||||||
|
|
||||||
BAN::ErrorOr<int> OpenFileDescriptorSet::fcntl(int fd, int cmd, uintptr_t extra)
|
BAN::ErrorOr<int> OpenFileDescriptorSet::fcntl(int fd, int cmd, uintptr_t extra)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue