Kernel: Fix dup2 return value

We returned the wrong fd number :D
This commit is contained in:
Bananymous 2025-12-30 16:13:00 +02:00
parent dc454b9a6a
commit b0bd4ad546
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ namespace Kernel
open_file.descriptor_flags = 0;
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)