summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.shilka
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/devices.shilka')
-rw-r--r--winsup/cygwin/devices.shilka2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/devices.shilka b/winsup/cygwin/devices.shilka
index f029c71e3..b7f1dfdf5 100644
--- a/winsup/cygwin/devices.shilka
+++ b/winsup/cygwin/devices.shilka
@@ -326,7 +326,7 @@ device::parse (const char *s)
if (++len < prior_len)
{
dev = KR_find_keyword (s, len);
- if (!dev || !dev->upper)
+ if (!dev || (!dev->upper && dev->devn != FH_TTY))
dev = NULL;
else
{