From fe25b1e7fcbcc6a33aa95557e2799790bbd4e5e9 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 16 Feb 1999 11:15:31 +0000 Subject: minor repairs --- libdiskfs/io-revoke.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdiskfs') 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) -- cgit v1.2.3