summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dtable.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-02-09 01:20:55 +0000
committerChristopher Faylor <me@cgf.cx>2012-02-09 01:20:55 +0000
commit06f46dc379d707574daac77bc3c83b1f3ed8eb0c (patch)
treeb10e90095348f7a881a09d39356360b94d3ea508 /winsup/cygwin/dtable.cc
parent461c56569f6feec66d6a9978728393a3c3ad5a9d (diff)
downloadcygnal-06f46dc379d707574daac77bc3c83b1f3ed8eb0c.tar.gz
cygnal-06f46dc379d707574daac77bc3c83b1f3ed8eb0c.tar.bz2
cygnal-06f46dc379d707574daac77bc3c83b1f3ed8eb0c.zip
* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
with O_RDWR permissions.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index c0af76961..fa442f771 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -351,7 +351,7 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle)
/* Console windows are not kernel objects, so the access mask returned
by NtQueryInformationFile is meaningless. CMD always hands down
stdin handles as R/O handles, but our tty slave sides are R/W. */
- if (!iscons_dev (dev) && fh->is_tty ())
+ if (fh->is_tty ())
{
openflags |= O_RDWR;
access |= GENERIC_READ | GENERIC_WRITE;