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:
authorCorinna Vinschen <corinna@vinschen.de>2008-04-17 13:29:51 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-04-17 13:29:51 +0400
commit2ed056f092f7fea88a8f1bb807b9a3e13f4d37e2 (patch)
tree5d27bea0056a395b99063c9fdfb505bce4ee9983
parentca889dab06fa92752573405631f2c6c1e5010674 (diff)
* dtable.cc (dtable::init_std_file_from_handle): Fix pipe related test.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/dtable.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 276f5429e..b67e0eea8 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 17c333c0c..e2fef52e5 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;