1
Fork 0
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:
Sergey Bugaev 2020-01-20 15:15:24 +03:00 committed by Andreas Kling
parent b25210ee1b
commit 9bc6157998

View file

@ -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;