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:
authorChristopher Faylor <me@cgf.cx>2002-05-19 00:27:49 +0400
committerChristopher Faylor <me@cgf.cx>2002-05-19 00:27:49 +0400
commit2701126aaf27767026307246d0085d4c2e00138d (patch)
tree98b230ac51dd900f0f8a7623fb520c2636e4bd95 /winsup/cygwin/fhandler_tty.cc
parent197f8077369499d4411d8e25628d3ea36da549ca (diff)
* path.cc (path_conv::check): Always set executable bit for executable
extension.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 648135012..ea9cab30b 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -689,7 +689,9 @@ fhandler_tty_slave::read (void *ptr, size_t len)
if (!(get_ttyp ()->ti.c_lflag & ICANON))
{
- vmin = min (INP_BUFFER_SIZE, get_ttyp ()->ti.c_cc[VMIN]);
+ vmin = get_ttyp ()->ti.c_cc[VMIN];
+ if (vmin > INP_BUFFER_SIZE)
+ vmin = INP_BUFFER_SIZE;
vtime = get_ttyp ()->ti.c_cc[VTIME];
if (vmin < 0) vmin = 0;
if (vtime < 0) vtime = 0;