Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-07-23 00:39:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-07-23 00:39:08 +0400
commit0544d11637ddb0cc1a5a8bcd79e5a4805a446fd4 (patch)
tree9702241b5b7f91f21857e364959adb631d4d4366
parent7b313f6fc875d7b72d61b1e36cf3205a12bf3c12 (diff)
* fhandler_tty.cc (fhandler_tty_slave::open): Use requested flag
values also when copying fhandler from archetype.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_tty.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index d629ad0f0..94ca8f1c6 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-22 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_tty.cc (fhandler_tty_slave::open): Use requested flag
+ values also when copying fhandler from archetype.
+
2004-07-22 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index f7831fe9b..350638176 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -456,6 +456,7 @@ fhandler_tty_slave::open (int flags, mode_t)
{
*this = *(fhandler_tty_slave *) arch;
termios_printf ("copied tty fhandler archetype");
+ set_flags ((flags & ~O_TEXT) | O_BINARY);
cygheap->open_fhs++;
goto out;
}