Mail Archives: cygwin-developers/1998/11/14/09:24:01
On Sat, Nov 14, 1998 at 05:09:04PM +0100, Corinna Vinschen wrote:
>Hello,
>
>I have found the error, which leads to the incorrect dup() handling
>in tcsh. The member variable hinfo::first_fd_for_open is set to 3
>in the constructor of hinfo, which give the incorrect later results.
>Initializing to 0 let it work as defined in the standards.
Does this fix the problem, perhaps?
Index: hinfo.cc
===================================================================
RCS file: /cvs/cvsfiles/devo/winsup/hinfo.cc,v
retrieving revision 1.65
diff -u -p -r1.65 hinfo.cc
--- hinfo.cc 1998/10/23 07:23:54 1.65
+++ hinfo.cc 1998/11/14 16:57:49
@@ -500,6 +500,7 @@ hinfo::de_linearize_fd_array (LPBYTE buf
buf += len;
debug_printf ("len %d", buf - obuf);
}
+ first_fd_for_open = 0;
return buf;
}
- Raw text -