* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles

with O_RDWR permissions.
This commit is contained in:
Christopher Faylor
2012-02-09 01:20:55 +00:00
parent 461c56569f
commit 06f46dc379
3 changed files with 7 additions and 2 deletions

View File

@ -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;