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
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-06-17 12:27:32 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-06-17 12:27:32 +0400
commit2ae8e0e482a4ae27c9ca872aacf705ca0398499d (patch)
treed3382b7992cc741c100ad2434df16ed978a3a121 /winsup
parent6f294f8601d3d1b97ef6d67a8c2596001df8157e (diff)
* dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
otherwise ptys are not recognized.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dtable.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 42f67e1d2..d9ca4e551 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-17 Corinna Vinschen <corinna@vinschen.de>
+
+ * dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
+ otherwise ptys are not recognized.
+
2011-06-16 Christopher Faylor <me.cygwin2011@cgf.cx>
* fhandler_console.cc (fhandler_console::set_unit): Set
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 136316a41..dfe990ed6 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -856,9 +856,9 @@ handle_to_fn (HANDLE h, char *posix_fn)
if (*w32 != L'-')
return false;
++w32;
- bool istty = wcsncmp (w32, L"tty", WCLEN (L"tty")) == 0;
+ bool istty = wcsncmp (w32, L"pty", WCLEN (L"pty")) == 0;
if (istty)
- decode_tty (posix_fn, w32 + WCLEN (L"tty"));
+ decode_tty (posix_fn, w32 + WCLEN (L"pty"));
else if (wcsncmp (w32, L"pipe", WCLEN (L"pipe")) == 0)
strcpy (posix_fn, "/dev/pipe");
return istty;