diff options
-rw-r--r-- | term/users.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c index 8b27acee..c472f67c 100644 --- a/term/users.c +++ b/term/users.c @@ -1828,7 +1828,10 @@ S_term_get_bottom_type (io_t arg, return EOPNOTSUPP; ports_port_deref (cred); - *ttype = TERM_ON_MACHDEV; + if (bottom == &devio_bottom) + *ttype = TERM_ON_MACHDEV; + else + *ttype = TERM_ON_MASTERPTY; return 0; } |