summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term/users.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/term/users.c b/term/users.c
index 0cba9de4..ee27c855 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1641,9 +1641,6 @@ S_tioctl_tiocspgrp (io_t port,
mutex_lock (&global_lock);
if (!(cred->po->openmodes & (O_READ|O_WRITE)))
err = EBADF;
- else if (!cred->hook
- || getsid (-pgrp) != ((struct protid_hook *)cred->hook)->sid)
- err = EPERM;
else
{
termflags &= ~NO_OWNER;