summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term/users.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c
index 529693e8..e51c1113 100644
--- a/term/users.c
+++ b/term/users.c
@@ -438,7 +438,7 @@ S_term_open_ctty (mach_port_t arg,
pthread_mutex_lock (&global_lock);
- if (!cred->po->openmodes & (O_READ|O_WRITE))
+ if (!(cred->po->openmodes & (O_READ|O_WRITE)))
{
pthread_mutex_unlock (&global_lock);
err = EBADF;