diff options
author | Zhaoming Luo <zhmingluo@163.com> | 2025-02-08 18:32:20 +0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-08 13:18:02 +0100 |
commit | 7ac18bc84ae7c5a5f2f255b6d5337eb085bb86cd (patch) | |
tree | 34ac90881ad2bb6805f0343cb0af6c5974642aaf | |
parent | eeb12a40ea48aa4d5658618a46baef9fe3c3818e (diff) |
term: Make term_getctty() accept pty_class
The term_getctty() should accept pty_class. The vim testsuite expects
the master side to say isatty().
See
https://mail.gnu.org/archive/html/bug-hurd/2025-02/msg00061.html
* term/users.c: The term_getctty() accepts pty_class
Message-ID: <20250208103220.853-1-zhmingluo@163.com>
-rw-r--r-- | term/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c index 3f449c71..bb5a9e09 100644 --- a/term/users.c +++ b/term/users.c @@ -358,7 +358,7 @@ S_term_getctty (struct trivfs_protid *cred, if (!cred || cred->pi.bucket != term_bucket - || cred->pi.class != tty_class) + || (cred->pi.class != tty_class && cred->pi.class != pty_class)) return EOPNOTSUPP; pthread_mutex_lock (&global_lock); |