mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
otherwise ptys are not recognized.
This commit is contained in:
parent
6f294f8601
commit
2ae8e0e482
@ -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>
|
2011-06-16 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* fhandler_console.cc (fhandler_console::set_unit): Set
|
* fhandler_console.cc (fhandler_console::set_unit): Set
|
||||||
|
@ -856,9 +856,9 @@ handle_to_fn (HANDLE h, char *posix_fn)
|
|||||||
if (*w32 != L'-')
|
if (*w32 != L'-')
|
||||||
return false;
|
return false;
|
||||||
++w32;
|
++w32;
|
||||||
bool istty = wcsncmp (w32, L"tty", WCLEN (L"tty")) == 0;
|
bool istty = wcsncmp (w32, L"pty", WCLEN (L"pty")) == 0;
|
||||||
if (istty)
|
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)
|
else if (wcsncmp (w32, L"pipe", WCLEN (L"pipe")) == 0)
|
||||||
strcpy (posix_fn, "/dev/pipe");
|
strcpy (posix_fn, "/dev/pipe");
|
||||||
return istty;
|
return istty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user