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(a)winehq.org ReportedBy: pclouds(a)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.