From e87a72f10564b6d56a2a277f19c3a2648b6ded9d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 12 Dec 1995 21:01:17 +0000 Subject: (open_hook): If this is the pty, then call pty specific function. --- term/users.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- cgit v1.2.3