summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-rw-r--r--term/users.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/term/users.c b/term/users.c
index d4cbf6a3..0c823df2 100644
--- a/term/users.c
+++ b/term/users.c
@@ -93,6 +93,9 @@ open_hook (struct trivfs_control *cntl,
if ((flags & (O_READ|O_WRITE)) == 0)
return 0;
+ if (cntl == ptyctl)
+ return pty_open_hook (cntl, uids, nuids, gids, ngids, flags);
+
mutex_lock (&global_lock);
if (!(termflags & TTY_OPEN))