mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
committed by
Andreas Kling
parent
b25210ee1b
commit
9bc6157998
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user