mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +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
Notes:
sideshowbarker
2024-07-19 09:56:29 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/9bc6157998d Pull-request: https://github.com/SerenityOS/serenity/pull/1100
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…
Reference in a new issue