summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-03 20:34:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-03 20:34:17 +0000
commita949f182eedd16724af8fa6d8e30b66ee93070bd (patch)
treeb133321574316d527833b849eb70535d5c4abd12
parentbd1e45e71493a8a6d79064b06112274662c93964 (diff)
Formerly io-restrict-auth.c.~2~
-rw-r--r--libdiskfs/io-restrict-auth.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdiskfs/io-restrict-auth.c b/libdiskfs/io-restrict-auth.c
index 88797c42..0adc23a4 100644
--- a/libdiskfs/io-restrict-auth.c
+++ b/libdiskfs/io-restrict-auth.c
@@ -16,6 +16,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "priv.h"
+#include "io_S.h"
/* Tell if the array LIST (of size N) contains a member equal to QUERY. */
static inline int
@@ -54,10 +55,10 @@ diskfs_S_io_restrict_auth (struct protid *cred,
if (listmember (gids, cred->gids[i], ngids))
newgids[newngids++] = cred->gids[i];
- mutex_lock (&cred->po->ip->i_toplock);
- *newport = (make_protid (cred->po, newuids, newnuids, newgids,
- newngids))->fspt.pi.port;
- mutex_unlock (&cred->po->ip->i_toplock);
+ mutex_lock (&cred->po->np->lock);
+ *newport = (diskfs_make_protid (cred->po, newuids, newnuids, newgids,
+ newngids))->fspt.pi.port;
+ mutex_unlock (&cred->po->np->lock);
*newportpoly = MACH_MSG_TYPE_MAKE_SEND;
return 0;
}