mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Kernel: Return new fd from sys$fcntl(F_DUPFD)
This fixes GNU Bash getting confused after performing a redirection.
This commit is contained in:
parent
b25210ee1b
commit
9bc6157998
1 changed files with 1 additions and 1 deletions
|
@ -1741,7 +1741,7 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
|
|||
if (new_fd < 0)
|
||||
return new_fd;
|
||||
m_fds[new_fd].set(*description);
|
||||
break;
|
||||
return new_fd;
|
||||
}
|
||||
case F_GETFD:
|
||||
return m_fds[fd].flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue