From bd72abd4e36109e6764e7a1cafca7be6cc6d9987 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 28 Feb 1999 20:54:05 +0000 Subject: 1999-02-28 Roland McGrath * users.c (trivfs_S_io_revoke): Use ports_class_iterate. --- term/users.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term') diff --git a/term/users.c b/term/users.c index ea6e22db..c3c01ca3 100644 --- a/term/users.c +++ b/term/users.c @@ -111,7 +111,7 @@ check_access_hook (struct trivfs_control *cntl, int *allowed) { struct stat st; - + mutex_lock (&global_lock); st.st_uid = term_owner; @@ -826,7 +826,7 @@ trivfs_S_io_revoke (struct trivfs_protid *cred, { struct trivfs_protid *user = port; - if (user->pi.class == cred->pi.class && user != cred) + if (user != cred) ports_destroy_right (user); return 0; } @@ -855,7 +855,7 @@ trivfs_S_io_revoke (struct trivfs_protid *cred, mutex_unlock (&global_lock); ports_inhibit_bucket_rpcs (term_bucket); - ports_bucket_iterate (term_bucket, iterator_function); + ports_class_iterate (cred->pi.class, iterator_function); ports_resume_bucket_rpcs (term_bucket); return 0; -- cgit v1.2.3