diff options
author | Roland McGrath <roland@gnu.org> | 1999-02-28 20:49:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-02-28 20:49:09 +0000 |
commit | caa1666dd2eb38fbc72dab53a588401c2da90f89 (patch) | |
tree | 8d8c0c6b08299101c59d9f14fafe47e7b2d5e5bd /libdiskfs/io-revoke.c | |
parent | 96bea14c36260f932db458d59e2b8f18340eaad0 (diff) |
1999-02-28 Roland McGrath <roland@baalperazim.frob.com>
* io-revoke.c (diskfs_S_io_revoke): Use ports_class_iterate.
* readonly.c (diskfs_set_readonly): Likewise.
Diffstat (limited to 'libdiskfs/io-revoke.c')
-rw-r--r-- | libdiskfs/io-revoke.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdiskfs/io-revoke.c b/libdiskfs/io-revoke.c index 0f15eaad..d42fb6c1 100644 --- a/libdiskfs/io-revoke.c +++ b/libdiskfs/io-revoke.c @@ -31,8 +31,7 @@ diskfs_S_io_revoke (struct protid *cred) { struct protid *user = port; - if ((user->pi.class == diskfs_protid_class) - && (user != cred) + if ((user != cred) && (user->po->np == np)) ports_destroy_right (user); return 0; @@ -53,7 +52,7 @@ diskfs_S_io_revoke (struct protid *cred) return err; ports_inhibit_bucket_rpcs (diskfs_port_bucket); - ports_bucket_iterate (diskfs_port_bucket, iterator_function); + ports_class_iterate (diskfs_protid_class, iterator_function); ports_resume_bucket_rpcs (diskfs_port_bucket); return 0; |