summaryrefslogtreecommitdiff
path: root/libdiskfs/io-revoke.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-revoke.c')
-rw-r--r--libdiskfs/io-revoke.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/io-revoke.c b/libdiskfs/io-revoke.c
index ddda95fa..90f8dc98 100644
--- a/libdiskfs/io-revoke.c
+++ b/libdiskfs/io-revoke.c
@@ -30,9 +30,12 @@ diskfs_S_io_revoke (struct protid *cred)
iterator_function (void *port)
{
struct protid *user = port;
-
- if ((user != cred) && (user->po->np == np))
+
+ if ((user.pi.class == diskfs_protid_class)
+ && (user != cred)
+ && (user->po->np == np))
ports_destroy_right (user);
+ return 0;
}
if (!cred)