diff options
author | Roland McGrath <roland@gnu.org> | 1999-02-17 04:25:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-02-17 04:25:29 +0000 |
commit | 0aa8cf2ecf3e88151999d4524d7a7e4f2a09c1a1 (patch) | |
tree | ee54d779b39ac52982bc658b1de1f8e6ac50e0ca | |
parent | f3adf169dc3023057d4316bb9a19076b48389198 (diff) |
1999-02-16 Roland McGrath <roland@baalperazim.frob.com>
* io-revoke.c (netfs_S_io_revoke): Fix typos.
-rw-r--r-- | libnetfs/io-revoke.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libnetfs/io-revoke.c b/libnetfs/io-revoke.c index 43ccae95..640a6a6e 100644 --- a/libnetfs/io-revoke.c +++ b/libnetfs/io-revoke.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1999 Free Software Foundation Written by Thomas Bushnell, BSG. @@ -26,13 +26,13 @@ netfs_S_io_revoke (struct protid *cred) error_t err; struct node *np; - error_t + error_t iterator_function (void *port) { struct protid *user = port; - if ((user.pi.class == netfs_protid_class) - && (user != cred) + if ((user->pi.class == netfs_protid_class) + && (user != cred) && (user->po->np == np)) ports_destroy_right (user); return 0; @@ -40,25 +40,23 @@ netfs_S_io_revoke (struct protid *cred) if (!cred) return EOPNOTSUPP; - + np = cred->po->np; mutex_lock (&np->lock); - - err = netfs_validate_stat (np, cred); + + err = netfs_validate_stat (np, cred->user); if (!err) - err = fshelp_isowner (&np->dn_stat, cred->user); + err = fshelp_isowner (&np->nn_stat, cred->user); if (err) { mutex_unlock (&np->lock); return err; } - + ports_bucket_iterate (netfs_port_bucket, iterator_function); mutex_unlock (&np->lock); return 0; } - - |