summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-02-28 20:54:05 +0000
committerRoland McGrath <roland@gnu.org>1999-02-28 20:54:05 +0000
commitbd72abd4e36109e6764e7a1cafca7be6cc6d9987 (patch)
tree19b4c12640749cd7fb0c5e0679e1abc9eebe0a94
parente0fa31fed89d5c3287c20c9139da9b9192c08951 (diff)
1999-02-28 Roland McGrath <roland@baalperazim.frob.com>
* users.c (trivfs_S_io_revoke): Use ports_class_iterate.
-rw-r--r--term/users.c6
1 files changed, 3 insertions, 3 deletions
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;