[Bug 9011] New: incorrect dup() behavior
Wine Bugs
wine-bugs at winehq.org
Fri Jul 20 10:15:49 CDT 2007
http://bugs.winehq.org/show_bug.cgi?id=9011
Summary: incorrect dup() behavior
Product: Wine
Version: unspecified
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-msvcrt
AssignedTo: wine-bugs at winehq.org
ReportedBy: pclouds at gmail.com
I consider it incorrect although I may be wrong about this. The following
program returns 1 on Windows but 3 on Wine:
#include <stdio.h>
int main(int argc,char **argv) {
close(1);
fprintf(stderr,"%d\n",dup(2));
return 0;
}
An exception was made in msvcrt_free_fd() to avoid using file handles < 3 for
dup(). Is it really necessary?
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list