diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1521fcfbb..69e55cbeb 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-02-08 Christopher Faylor + + * dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty + handles with O_RDWR permissions. + 2012-02-08 Corinna Vinschen * thread.cc (__pthread_cond_wait_init): New static function replacing 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; diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index 945ce146c..962bf776e 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -1,7 +1,7 @@ /* passwd.cc: getpwnam () and friends Copyright 1996, 1997, 1998, 2001, 2002, 2003, 2007, 2008, 2009, - 2010, 2011 Red Hat, Inc. + 2010, 2011, 2012 Red Hat, Inc. This file is part of Cygwin.