diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-17 09:29:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-17 09:29:51 +0000 |
commit | 2ed056f092f7fea88a8f1bb807b9a3e13f4d37e2 (patch) | |
tree | 5d27bea0056a395b99063c9fdfb505bce4ee9983 | |
parent | ca889dab06fa92752573405631f2c6c1e5010674 (diff) | |
download | newlib-2ed056f092f7fea88a8f1bb807b9a3e13f4d37e2.zip newlib-2ed056f092f7fea88a8f1bb807b9a3e13f4d37e2.tar.gz newlib-2ed056f092f7fea88a8f1bb807b9a3e13f4d37e2.tar.bz2 |
* dtable.cc (dtable::init_std_file_from_handle): Fix pipe related test.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/dtable.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 276f542..b67e0ee 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2008-04-17 Corinna Vinschen <corinna@vinschen.de> + + * dtable.cc (dtable::init_std_file_from_handle): Fix pipe related test. + 2008-03-06 Corinna Vinschen <corinna@vinschen.de> * child_info.h (CURR_CHILD_INFO_MAGIC): Reset. diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 17c333c..e2fef52 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -301,7 +301,7 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle) else { name = handle_to_fn (handle, (char *) alloca (CYG_MAX_PATH + 100)); - if (!strncasematch (name, POSIX_NAMED_PIPE, POSIX_NAMED_PIPE_LEN)) + if (ft != FILE_TYPE_PIPE) /* nothing */; else if (fd == 0) dev = *piper_dev; |