https://bugs.winehq.org/show_bug.cgi?id=53950
Bug ID: 53950 Summary: dup2 error returns ENFILE instead of EBADF Product: Wine Version: 7.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: xantares09@hotmail.com Distribution: ---
Created attachment 73526 --> https://bugs.winehq.org/attachment.cgi?id=73526 testcase
dup2 returns an incorrect error code: ENFILE instead of EBADF
this is very similar to https://bugs.winehq.org/show_bug.cgi?id=53677